Fix first logbook item not being shown (#5491)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user