mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Fix first logbook item not being shown (#5491)
This commit is contained in:
parent
e9bb9fdafe
commit
a71f42366a
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user