From 81053f2e078c7f1b04945bdf63c9cf1a806add62 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Wed, 25 Oct 2023 06:48:05 -0700 Subject: [PATCH] Fix an undefined exception in more-info popup for history graph (#18404) --- src/components/chart/state-history-charts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/chart/state-history-charts.ts b/src/components/chart/state-history-charts.ts index 24854e8719..61d02699ea 100644 --- a/src/components/chart/state-history-charts.ts +++ b/src/components/chart/state-history-charts.ts @@ -223,7 +223,7 @@ export class StateHistoryCharts extends LitElement { ); } else { this._computedStartTime = new Date( - this.historyData.timeline.reduce( + (this.historyData?.timeline ?? []).reduce( (minTime, stateInfo) => Math.min( minTime,