forked from MapComplete/MapComplete
Fix crash if there is no oldId
This commit is contained in:
parent
7edc7302bb
commit
a1c17edabe
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue