fix(editor): Fix an issue with connections breaking during renaming (#6358)

* fix(editor): Fix an issue where dragging during when rename modal active would break workflow connections

* Use enum to check for confirm state of modal
This commit is contained in:
OlegIvaniv 2023-06-01 19:34:36 +02:00 committed by GitHub
parent 23e49c53ed
commit 0f2bc6b737
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3060,6 +3060,8 @@ export default defineComponent({
const promptResponse = (await promptResponsePromise) as MessageBoxInputData;
if (promptResponse?.action !== MODAL_CONFIRM) return;
await this.renameNode(currentName, promptResponse.value, true);
} catch (e) {}
},