Fix first logbook item not being shown (#5491)

This commit is contained in:
Bram Kragten 2020-04-08 12:23:44 +02:00
parent 5f3a6740c1
commit 2e2915ec09

View File

@ -60,7 +60,7 @@ class HaLogbook extends LitElement {
item: LogbookEntry,
index?: number
): TemplateResult {
if (!index) {
if (index === undefined) {
return html``;
}
const previous = this.entries[index - 1];