fix(editor): Prevent running workflow that has issues if listening to webhook (#11402)

This commit is contained in:
Iván Ovejero
2024-10-25 10:48:41 +02:00
committed by GitHub
parent 7fc3b25d21
commit 8b0a48f530
3 changed files with 22 additions and 0 deletions

View File

@@ -81,6 +81,11 @@ export function useRunWorkflow(useRunWorkflowOpts: { router: ReturnType<typeof u
workflowsStore.activeExecutionId = response.executionId;
}
if (response.waitingForWebhook === true && useWorkflowsStore().nodesIssuesExist) {
uiStore.removeActiveAction('workflowRunning');
throw new Error(i18n.baseText('workflowRun.showError.resolveOutstandingIssues'));
}
if (response.waitingForWebhook === true) {
workflowsStore.executionWaitingForWebhook = true;
}