mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +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) {
|
function findFirstPinnedTrigger(workflow: IWorkflowDb, pinData?: IPinData) {
|
||||||
if (!pinData) return;
|
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