Skip to content

Commit

Permalink
Metadata editor / Regions picker display empty entry form the metadat…
Browse files Browse the repository at this point in the history
…a regions dao.
  • Loading branch information
josegar74 authored and fxprunayre committed Nov 22, 2024
1 parent af0c541 commit 97bdd7b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 97bdd7b

Please sign in to comment.