Skip to content

Commit

Permalink
Fix a crash in trace graph generation for if/else (#18390)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Oct 24, 2023
1 parent 33e0c69 commit 464ecff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/trace/hat-script-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export class HatScriptGraph extends LitElement {
.notEnabled=${disabled || config.enabled === false}
nofocus
></hat-graph-node>
${ensureArray(config.then).map((action, j) =>
${ensureArray(config.then ?? []).map((action, j) =>
this.render_action_node(
action,
`${path}/then/${j}`,
Expand Down

0 comments on commit 464ecff

Please sign in to comment.