Skip to content

Commit

Permalink
Fix graph outputs node that gets ran 2+ times with excluded, then a v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
abrenneke committed Sep 19, 2023
1 parent 39e3eb4 commit 18247f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/model/nodes/GraphOutputNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ export class GraphOutputNodeImpl extends NodeImpl<GraphOutputNode> {
value: undefined,
};
} else if (
context.graphOutputs[this.data.id] == null ||
context.graphOutputs[this.data.id]?.type === 'control-flow-excluded'
(context.graphOutputs[this.data.id] == null ||
context.graphOutputs[this.data.id]?.type === 'control-flow-excluded') &&
inputs['value' as PortId]
) {
context.graphOutputs[this.data.id] = value;
}
Expand Down

0 comments on commit 18247f4

Please sign in to comment.