Fix: allow to move (non-snapped) points again after fixing #1809

This commit is contained in:
Pieter Vander Vennet 2024-03-05 23:20:02 +01:00
parent 95b5b99e9b
commit 77f07f55ec

View file

@ -134,9 +134,10 @@ export class MoveWizardState {
// This is a new point. Check if it was snapped to an existing way due to the '_referencing_ways'-tag
const store = this._state.featureProperties.getStore(id)
store?.addCallbackAndRunD((tags) => {
if (tags._referencing_ways !== "[]") {
if (tags._referencing_ways !== undefined && tags._referencing_ways !== "[]") {
console.log("Got referencing ways according to the tags")
this.moveDisallowedReason.setData(t.partOfAWay)
return true
}
})
}