Fix an undefined exception in more-info popup for history graph (#18404)

This commit is contained in:
karwosts 2023-10-25 06:48:05 -07:00 committed by GitHub
parent e8b4eeec67
commit 81053f2e07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,7 +223,7 @@ export class StateHistoryCharts extends LitElement {
); );
} else { } else {
this._computedStartTime = new Date( this._computedStartTime = new Date(
this.historyData.timeline.reduce( (this.historyData?.timeline ?? []).reduce(
(minTime, stateInfo) => (minTime, stateInfo) =>
Math.min( Math.min(
minTime, minTime,