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) {
|
if (newId === undefined) {
|
||||||
// We removed the node/way/relation with type 'type' and id 'oldId' on openstreetmap!
|
// We removed the node/way/relation with type 'type' and id 'oldId' on openstreetmap!
|
||||||
const element = this._elements.get(oldId)
|
const element = this._elements.get(oldId)
|
||||||
|
if(!element || element.data === undefined){
|
||||||
|
return
|
||||||
|
}
|
||||||
element.data._deleted = "yes"
|
element.data._deleted = "yes"
|
||||||
element.ping()
|
element.ping()
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue