diff --git a/src/renderer/components/EditLayer.vue b/src/renderer/components/EditLayer.vue index 9494f50..4fd94d5 100644 --- a/src/renderer/components/EditLayer.vue +++ b/src/renderer/components/EditLayer.vue @@ -224,6 +224,9 @@ You should have received a copy of the GNU General Public License along with FG this.$store.commit('SET_EDIT', true) this.featureLookup = []; + if(!this.groundnetLayerGroup) { + return; + } this.groundnetLayerGroup.eachLayer(l => { l.enableEdit() l.featureLookup = this.featureLookup;