diff --git a/src/renderer/components/EditLayer.vue b/src/renderer/components/EditLayer.vue index d4febdd..d2c98de 100644 --- a/src/renderer/components/EditLayer.vue +++ b/src/renderer/components/EditLayer.vue @@ -174,7 +174,7 @@ } }, findRouteToPushback (index) { - if (this.featureLookup===undefined) { + if (this.featureLookup===undefined || this.featureLookup[index]===undefined) { return } var parking = this.featureLookup[index].filter(n => n instanceof L.ParkingSpot)