mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00: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:
@@ -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],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user