From b7f12650f1f42c0ff15c1da3e5ade350fb1e23d2 Mon Sep 17 00:00:00 2001 From: Michael Kret <88898367+michael-radency@users.noreply.github.com> Date: Wed, 19 Feb 2025 15:03:26 +0200 Subject: [PATCH] fix: Always clear popupWindowState before showing popup from form trigger (#13363) --- packages/editor-ui/src/utils/executionUtils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/utils/executionUtils.ts b/packages/editor-ui/src/utils/executionUtils.ts index 11457e89e4..adcbbcd2ad 100644 --- a/packages/editor-ui/src/utils/executionUtils.ts +++ b/packages/editor-ui/src/utils/executionUtils.ts @@ -130,7 +130,10 @@ export function displayForm({ if (node.name === destinationNode || !node.disabled) { let testUrl = ''; if (node.type === FORM_TRIGGER_NODE_TYPE) testUrl = getTestUrl(node); - if (testUrl && source !== 'RunData.ManualChatMessage') openFormPopupWindow(testUrl); + if (testUrl && source !== 'RunData.ManualChatMessage') { + clearPopupWindowState(); + openFormPopupWindow(testUrl); + } } } }