Fix first logbook item not being shown (#5491)

This commit is contained in:
Bram Kragten
2020-04-08 12:23:44 +02:00
committed by GitHub
parent e9bb9fdafe
commit a71f42366a
+1 -1
View File
@@ -60,7 +60,7 @@ class HaLogbook extends LitElement {
item: LogbookEntry, item: LogbookEntry,
index?: number index?: number
): TemplateResult { ): TemplateResult {
if (!index) { if (index === undefined) {
return html``; return html``;
} }
const previous = this.entries[index - 1]; const previous = this.entries[index - 1];