@woosmap/ui 4.130.4 → 4.130.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -281,7 +281,9 @@ export default class CountrySelect extends Component {
|
|
|
281
281
|
const { placeholder, onChange, size, isMulti, value, className, ...rest } = this.props;
|
|
282
282
|
let countryOption;
|
|
283
283
|
if (value) {
|
|
284
|
-
countryOption = Array.isArray(value)
|
|
284
|
+
countryOption = Array.isArray(value)
|
|
285
|
+
? value
|
|
286
|
+
: countriesOptions.find((item) => item.value === value.toLowerCase());
|
|
285
287
|
}
|
|
286
288
|
delete rest.className;
|
|
287
289
|
return (
|