diff --git a/src/components/trace/hat-script-graph.ts b/src/components/trace/hat-script-graph.ts index 4698396819..40afe60a62 100644 --- a/src/components/trace/hat-script-graph.ts +++ b/src/components/trace/hat-script-graph.ts @@ -298,7 +298,7 @@ export class HatScriptGraph extends LitElement { .notEnabled=${disabled || config.enabled === false} nofocus > - ${ensureArray(config.then).map((action, j) => + ${ensureArray(config.then ?? []).map((action, j) => this.render_action_node( action, `${path}/then/${j}`,