From 77f07f55ecf9140c1c556fb4147c7d5cb74b0645 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 5 Mar 2024 23:20:02 +0100 Subject: [PATCH] Fix: allow to move (non-snapped) points again after fixing #1809 --- src/UI/Popup/MoveWizardState.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UI/Popup/MoveWizardState.ts b/src/UI/Popup/MoveWizardState.ts index bad0dd8a6e..cdb9255e8e 100644 --- a/src/UI/Popup/MoveWizardState.ts +++ b/src/UI/Popup/MoveWizardState.ts @@ -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 } }) }