@woosmap/ui 4.178.0 → 4.179.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.178.0",
3
+ "version": "4.179.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -302,7 +302,7 @@ export default class CountrySelect extends Component {
302
302
  .filter((item) => filter.includes(item.value))
303
303
  .sort((a, b) => filter.indexOf(a.value) - filter.indexOf(b.value));
304
304
  }
305
- if (otherOption) {
305
+ if (otherOption && !result.find((item) => item.value === otherOption.value)) {
306
306
  result.unshift(otherOption);
307
307
  }
308
308
  return result;