mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16: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,
|
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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user