fix: rename to countryCodes for UI

This commit is contained in:
Yang Luo
2024-05-01 11:44:21 +08:00
parent 3a45a4ee77
commit 9eb4b12041

View File

@ -116,8 +116,8 @@ class ProviderTable extends React.Component {
}, },
{ {
title: i18next.t("user:Country/Region"), title: i18next.t("user:Country/Region"),
dataIndex: "countryCode", dataIndex: "countryCodes",
key: "countryCode", key: "countryCodes",
width: "140px", width: "140px",
render: (text, record, index) => { render: (text, record, index) => {
if (record.provider?.category !== "SMS") { if (record.provider?.category !== "SMS") {
@ -131,7 +131,7 @@ class ProviderTable extends React.Component {
mode={"multiple"} mode={"multiple"}
initValue={text ? text : ["All"]} initValue={text ? text : ["All"]}
onChange={(value) => { onChange={(value) => {
this.updateField(table, index, "countryCode", value); this.updateField(table, index, "countryCodes", value);
}} }}
countryCodes={this.getUserOrganization()?.countryCodes} countryCodes={this.getUserOrganization()?.countryCodes}
/> />