From a1c17edabe9736e4901187266369d7df6f07d527 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 27 Mar 2024 18:40:18 +0100 Subject: [PATCH] Fix crash if there is no oldId --- src/Logic/FeatureSource/Actors/FeaturePropertiesStore.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Logic/FeatureSource/Actors/FeaturePropertiesStore.ts b/src/Logic/FeatureSource/Actors/FeaturePropertiesStore.ts index c8186a8ba..85f2be343 100644 --- a/src/Logic/FeatureSource/Actors/FeaturePropertiesStore.ts +++ b/src/Logic/FeatureSource/Actors/FeaturePropertiesStore.ts @@ -96,6 +96,9 @@ export default class FeaturePropertiesStore { if (newId === undefined) { // We removed the node/way/relation with type 'type' and id 'oldId' on openstreetmap! const element = this._elements.get(oldId) + if(!element || element.data === undefined){ + return + } element.data._deleted = "yes" element.ping() return