Skip to content

Commit afc9703

Browse files
authored
Fix flow nodes with undefined antecedent property in nightly (#147)
1 parent c6fe8d2 commit afc9703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FlowNodeGraph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function getDotForFlowGraph(api: CompilerApi, node: FlowNode, darkMode: boolean)
8080
}
8181
parts.push(flagText);
8282
nodeLines.push(`${id} [shape=record ${nodeProps} label="{${parts.join("|")}}"];`);
83-
const antecedents = "antecedent" in fn
83+
const antecedents = "antecedent" in fn && fn.antecedent != null
8484
? [fn.antecedent]
8585
: ("antecedents" in fn && fn.antecedents)
8686
? fn.antecedents

0 commit comments

Comments
 (0)