fix: Always clear popupWindowState before showing popup from form trigger (#13363)

This commit is contained in:
Michael Kret 2025-02-19 15:03:26 +02:00 committed by GitHub
parent 755734d349
commit b7f12650f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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