👕 Fix lint issue

This commit is contained in:
Jan Oberhauser
2020-07-26 11:33:20 +02:00
parent d726e11af4
commit a46a6fa00c
7 changed files with 39 additions and 46 deletions

View File

@@ -82,14 +82,7 @@ export function getWorkflowWebhooksBasic(workflow: Workflow): IWebhookData[] {
const returnData: IWebhookData[] = [];
let parentNodes: string[] | undefined;
for (const node of Object.values(workflow.nodes)) {
if (parentNodes !== undefined && !parentNodes.includes(node.name)) {
// If parentNodes are given check only them if they have webhooks
// and no other ones
continue;
}
returnData.push.apply(returnData, NodeHelpers.getNodeWebhooksBasic(workflow, node));
}