From d40acc227ce49f8eeacdfcfce8c3d316ee023b6e Mon Sep 17 00:00:00 2001 From: Zack Arnett Date: Thu, 10 Sep 2020 16:37:54 -0500 Subject: [PATCH] comment --- src/dialogs/more-info/ha-more-info-history.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }