From e4f36b3076509fe24a6ddc124fe20620cc9314af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Garc=C3=ADa?= Date: Fri, 22 Nov 2024 12:11:40 +0100 Subject: [PATCH] Metadata editor / Regions picker display empty entry form the metadata regions dao. --- .../resources/catalog/components/utility/UtilityDirective.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js b/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js index 8a765a04ff5..d621e8c7063 100644 --- a/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js +++ b/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js @@ -504,7 +504,10 @@ * Load list on init to fill the dropdown */ gnRegionService.loadList().then(function (data) { - scope.regionTypes = angular.copy(data); + var dataFiltered = _.filter(data, function (o) { + return o.id !== "metadata"; + }); + scope.regionTypes = angular.copy(dataFiltered); if (addGeonames) { scope.regionTypes.unshift({ name: "Geonames",