mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): fix canvas node execution skipping parent nodes (#4438)
🔥 Remove pindata check
This commit is contained in:
parent
d833345092
commit
3a9684df9f
|
@ -361,12 +361,11 @@ export class WorkflowRunnerProcess {
|
||||||
) {
|
) {
|
||||||
// Execute all nodes
|
// Execute all nodes
|
||||||
|
|
||||||
const pinDataKeys = this.data?.pinData ? Object.keys(this.data.pinData) : [];
|
|
||||||
const noPinData = pinDataKeys.length === 0;
|
|
||||||
const isPinned = (nodeName: string) => pinDataKeys.includes(nodeName);
|
|
||||||
|
|
||||||
let startNode;
|
let startNode;
|
||||||
if (this.data.startNodes?.length === 1 && (noPinData || isPinned(this.data.startNodes[0]))) {
|
if (
|
||||||
|
this.data.startNodes?.length === 1 &&
|
||||||
|
Object.keys(this.data.pinData ?? {}).includes(this.data.startNodes[0])
|
||||||
|
) {
|
||||||
startNode = this.workflow.getNode(this.data.startNodes[0]) ?? undefined;
|
startNode = this.workflow.getNode(this.data.startNodes[0]) ?? undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue