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 committed Nov 22, 2024
1 parent 4fa388c commit e4f36b3
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 e4f36b3

Please sign in to comment.