Skip to content

Commit

Permalink
Fix display of variables tab when automation step not executed
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Dec 29, 2023
1 parent dcfe961 commit 9e13012
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/trace/ha-trace-path-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ export class HaTracePathDetails extends LitElement {
const paths = this.trace.trace;
const data: ActionTraceStep[] = paths[this.selected.path];

if (data === undefined) {
return html`<div class="padded-box">
${this.hass!.localize(
"ui.panel.config.automation.trace.path.step_not_executed"

Check failure on line 214 in src/components/trace/ha-trace-path-details.ts

View workflow job for this annotation

GitHub Actions / Lint and check format

Argument of type '"ui.panel.config.automation.trace.path.step_not_executed"' is not assignable to parameter of type 'LocalizeKeys'.
)}
</div>`;
}

return html`
<div class="padded-box">
${data.map(
Expand Down

0 comments on commit 9e13012

Please sign in to comment.