mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
fix(core): Account for enabled state in first pinned trigger (#3912)
🐛 Account for enabled state in first pinned trigger
This commit is contained in:
parent
725a567f07
commit
6bd7a09a45
|
@ -2880,5 +2880,7 @@ const isTrigger = (nodeType: string) =>
|
|||
function findFirstPinnedTrigger(workflow: IWorkflowDb, pinData?: IPinData) {
|
||||
if (!pinData) return;
|
||||
|
||||
return workflow.nodes.find((node) => isTrigger(node.type) && pinData[node.name]);
|
||||
return workflow.nodes.find(
|
||||
(node) => !node.disabled && isTrigger(node.type) && pinData[node.name],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue