Fix a crash in trace graph generation for if/else (#18390)

This commit is contained in:
karwosts
2023-10-24 16:18:21 -07:00
committed by GitHub
parent 33e0c691c7
commit 464ecffda7

View File

@@ -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}`,