Skip to content

Commit

Permalink
fix double popup
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency committed Nov 27, 2024
1 parent f91fecf commit 8aaa0d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/editor-ui/src/stores/workflows.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1726,5 +1726,6 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, () => {
setNodes,
setConnections,
markExecutionAsStopped,
formPopupWindow,
};
});
4 changes: 3 additions & 1 deletion packages/editor-ui/src/utils/executionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ 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') openPopUpWindow(testUrl);
if (testUrl && source !== 'RunData.ManualChatMessage') {
useWorkflowsStore().formPopupWindow = openPopUpWindow(testUrl);
}
}
}
}
Expand Down

0 comments on commit 8aaa0d3

Please sign in to comment.