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); + } } } }