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"),
dataIndex: "countryCode",
key: "countryCode",
dataIndex: "countryCodes",
key: "countryCodes",
width: "140px",
render: (text, record, index) => {
if (record.provider?.category !== "SMS") {
@ -131,7 +131,7 @@ class ProviderTable extends React.Component {
mode={"multiple"}
initValue={text ? text : ["All"]}
onChange={(value) => {
this.updateField(table, index, "countryCode", value);
this.updateField(table, index, "countryCodes", value);
}}
countryCodes={this.getUserOrganization()?.countryCodes}
/>