From fb72f8d760652622ebd438b6251324ee7a547e5b Mon Sep 17 00:00:00 2001 From: portree_kid Date: Mon, 27 Apr 2020 15:23:05 +0200 Subject: [PATCH] Remove frequency --- src/renderer/components/AirportEdit.vue | 2 +- src/renderer/components/EditLayer.vue | 3 +++ src/renderer/components/Frequency.vue | 14 ++++++++++---- src/renderer/store/modules/Frequencies.js | 9 +++++++++ 4 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/renderer/components/AirportEdit.vue b/src/renderer/components/AirportEdit.vue index 5d3e9e5..ba8a93d 100644 --- a/src/renderer/components/AirportEdit.vue +++ b/src/renderer/components/AirportEdit.vue @@ -98,6 +98,6 @@ \ No newline at end of file diff --git a/src/renderer/components/EditLayer.vue b/src/renderer/components/EditLayer.vue index 99758d3..0ce39f1 100644 --- a/src/renderer/components/EditLayer.vue +++ b/src/renderer/components/EditLayer.vue @@ -455,6 +455,9 @@ return } this.$store.dispatch('updatedParking', this.$store.state.Editable.data.parking); + if (this.featureLookup[this.$store.state.Editable.index]===undefined) { + return + } this.featureLookup[this.$store.state.Editable.index].forEach((element,index) => { if (element instanceof L.ParkingSpot) { element.options.attributes = Object.assign({}, this.$store.state.Editable.data.parking) diff --git a/src/renderer/components/Frequency.vue b/src/renderer/components/Frequency.vue index 9d790f3..63a0ef1 100644 --- a/src/renderer/components/Frequency.vue +++ b/src/renderer/components/Frequency.vue @@ -12,7 +12,7 @@ > - + + + +