From 0f2bc6b73711597fdf008ee54665d9bed82a1a9e Mon Sep 17 00:00:00 2001 From: OlegIvaniv Date: Thu, 1 Jun 2023 19:34:36 +0200 Subject: [PATCH] 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 --- packages/editor-ui/src/views/NodeView.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index dd6919c999..c0df57b71f 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -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) {} },