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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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];