Fix crash if there is no oldId

This commit is contained in:
Pieter Vander Vennet 2024-03-27 18:40:18 +01:00
parent 7edc7302bb
commit a1c17edabe

View file

@ -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