diff --git a/src/dialogs/more-info/ha-more-info-history.ts b/src/dialogs/more-info/ha-more-info-history.ts index 41d2f8d047..9ab8b9fe48 100644 --- a/src/dialogs/more-info/ha-more-info-history.ts +++ b/src/dialogs/more-info/ha-more-info-history.ts @@ -131,7 +131,11 @@ export class MoreInfoHistory extends LitElement { true ); - this._entries = [...(this._entries || []), ...newEntries]; + if (this._entries) { + this._entries = [...this._entries, ...newEntries]; + } else { + this._entries = newEntries; + } this._lastLogbookDate = now; }