fix(core): fix canvas node execution skipping parent nodes (#4438)

🔥 Remove pindata check
This commit is contained in:
Iván Ovejero 2022-10-26 10:13:33 +02:00 committed by GitHub
parent d833345092
commit 3a9684df9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}