Skip to content

Commit

Permalink
fix(core): fix canvas node execution skipping parent nodes (#4438)
Browse files Browse the repository at this point in the history
🔥 Remove pindata check
  • Loading branch information
ivov authored Oct 26, 2022
1 parent d833345 commit 3a9684d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/cli/src/WorkflowRunnerProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,11 @@ export class WorkflowRunnerProcess {
) {
// 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;
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;
}

Expand Down

0 comments on commit 3a9684d

Please sign in to comment.