diff --git a/client/js/components/map/publicdetail/Map.vue b/client/js/components/map/publicdetail/Map.vue index 3033aa747f..0af8ff7b37 100644 --- a/client/js/components/map/publicdetail/Map.vue +++ b/client/js/components/map/publicdetail/Map.vue @@ -394,7 +394,7 @@ export default { addTerritoryLayer () { // If there is no territory wms layer defined but a "hand-drawn" territory, craft a vector layer from it - if (!this.hasTerritoryWMS && this.procedureSettings.territory.length > 0 && this.procedureSettings.territory !== '{}') { + if (!this.hasTerritoryWMS && this.hasTerritory()) { // Read GeoJson features const features = new GeoJSON().readFeatures(this.procedureSettings.territory) @@ -1614,6 +1614,10 @@ export default { this.$root.$emit('changeActive') }, + hasTerritory() { + return this.procedureSettings.territory && this.procedureSettings.territory.features.length > 0 + }, + removeOtherInteractions (reset) { this.map.getInteractions().forEach(interaction => { if (interaction instanceof Draw) { diff --git a/client/js/components/procedure/admin/DpAddOrganisationList.vue b/client/js/components/procedure/admin/DpAddOrganisationList.vue index dd5f4d0b6d..aba937c4e5 100644 --- a/client/js/components/procedure/admin/DpAddOrganisationList.vue +++ b/client/js/components/procedure/admin/DpAddOrganisationList.vue @@ -30,23 +30,25 @@