Skip to content

Commit 6bd7a09

Browse files
authored
fix(core): Account for enabled state in first pinned trigger (n8n-io#3912)
🐛 Account for enabled state in first pinned trigger
1 parent 725a567 commit 6bd7a09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cli/src/Server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2880,5 +2880,7 @@ const isTrigger = (nodeType: string) =>
28802880
function findFirstPinnedTrigger(workflow: IWorkflowDb, pinData?: IPinData) {
28812881
if (!pinData) return;
28822882

2883-
return workflow.nodes.find((node) => isTrigger(node.type) && pinData[node.name]);
2883+
return workflow.nodes.find(
2884+
(node) => !node.disabled && isTrigger(node.type) && pinData[node.name],
2885+
);
28842886
}

0 commit comments

Comments
 (0)