fix(editor): Fix the regression in runWorkflow, introduced in #9977 (no-changelog) (#9988)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-07-10 08:52:19 +02:00 committed by GitHub
parent c8ad7ccd72
commit e8e3d44146
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -279,10 +279,12 @@ export function useRunWorkflow(useRunWorkflowOpts: { router: ReturnType<typeof u
if (node.name === options.destinationNode || !node.disabled) {
let testUrl = '';
if (node.type === FORM_TRIGGER_NODE_TYPE) {
const nodeType = nodeTypesStore.getNodeType(node.type, node.typeVersion);
if (nodeType?.webhooks?.length) {
testUrl = workflowHelpers.getWebhookUrl(nodeType.webhooks[0], node, 'test');
}
}
if (
node.type === WAIT_NODE_TYPE &&