diff --git a/src/components/FormItem/index.jsx b/src/components/FormItem/index.jsx
index 160e6d9f..5421551c 100644
--- a/src/components/FormItem/index.jsx
+++ b/src/components/FormItem/index.jsx
@@ -258,7 +258,8 @@ export default class FormItem extends React.Component {
}
getSelectTableValidator = (rule, value) => {
- if (!value || value.selectedRowKeys.length === 0) {
+ const { selectedRowKeys = [] } = value || {};
+ if (selectedRowKeys.length === 0) {
return Promise.reject(
new Error(rule.placeholder || `${t('Please select')}${rule.label}!`)
);
diff --git a/src/locales/en.json b/src/locales/en.json
index e6478e61..e290f648 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -1254,6 +1254,7 @@
"Neutron Agent Detail": "Neutron Agent Detail",
"Neutron Agents": "Neutron Agents",
"Neutron Service": "Neutron Service",
+ "New": "New",
"New Availability Zone": "New Availability Zone",
"New Caledonia": "New Caledonia",
"New Zealand": "New Zealand",
@@ -1451,7 +1452,6 @@
"Please select your Domain!": "Please select your Domain!",
"Please select your Region!": "Please select your Region!",
"Please select {name} first": "Please select {name} first",
- "Please select!": "Please select!",
"Please set CPU && Ram first.": "Please set CPU && Ram first.",
"Please set MUNA": "Please set MUNA",
"Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.": "Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.",
@@ -1482,6 +1482,7 @@
"Port Security Enabled": "Port Security Enabled",
"Port Type": "Port Type",
"Ports": "Ports",
+ "Ports provide extra communication channels to your instances. You can select ports instead of networks or a mix of both (The port executes its own security group rules by default).": "Ports provide extra communication channels to your instances. You can select ports instead of networks or a mix of both (The port executes its own security group rules by default).",
"Portugal": "Portugal",
"Power Off": "Power Off",
"Power On": "Power On",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index f83e01ab..4cea53a3 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -1254,6 +1254,7 @@
"Neutron Agent Detail": "网络服务详情",
"Neutron Agents": "网络服务",
"Neutron Service": "网络服务",
+ "New": "新建",
"New Availability Zone": "新可用域",
"New Caledonia": "新喀里多尼亚",
"New Zealand": "新西兰",
@@ -1451,7 +1452,6 @@
"Please select your Domain!": "请选择Domain!",
"Please select your Region!": "请选择Region!",
"Please select {name} first": "请先选择{name}",
- "Please select!": "请选择!",
"Please set CPU && Ram first.": "请先设置CPU、内存。",
"Please set MUNA": "请设置NUMA节点",
"Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.": "页面请上传小于{ size }G的文件,超过{ size }G的文件建议使用API上传。",
@@ -1482,6 +1482,7 @@
"Port Security Enabled": "启用端口安全",
"Port Type": "端口方式",
"Ports": "端口",
+ "Ports provide extra communication channels to your instances. You can select ports instead of networks or a mix of both (The port executes its own security group rules by default).": "端口为您的云主机提供了额外的通信渠道。您可以选择已创建的端口而非网络或者二者都选(端口默认执行本身的安全组规则)。",
"Portugal": "葡萄牙",
"Power Off": "关机",
"Power On": "开机",
diff --git a/src/pages/compute/containers/Instance/actions/StepCreate/ConfirmStep/index.jsx b/src/pages/compute/containers/Instance/actions/StepCreate/ConfirmStep/index.jsx
index 6651cdc4..80d130f7 100644
--- a/src/pages/compute/containers/Instance/actions/StepCreate/ConfirmStep/index.jsx
+++ b/src/pages/compute/containers/Instance/actions/StepCreate/ConfirmStep/index.jsx
@@ -74,7 +74,7 @@ export class ConfirmStep extends Base {
getVirtualLANs() {
const { context } = this.props;
- const { networks } = context;
+ const { networks = [] } = context;
const values = networks.map((it) => {
const { networkOption, subnetOption, ipTypeOption, ip } = it.value;
const subnet =
@@ -86,19 +86,42 @@ export class ConfirmStep extends Base {
return (
{values.map((i) => (
-