Fix issue causing first thumbnail to be empty.

This commit is contained in:
Dermot Duffy
2022-04-02 14:28:18 -07:00
parent 5b66c6cad6
commit f98d749d07
4 changed files with 27 additions and 21 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export class FrigateCardThumbnail extends LitElement {
* @returns A template to display to the user.
*/
protected render(): TemplateResult | void {
if (!this.target || !this.target.children || !this.childIndex) {
if (!this.target || !this.target.children || this.childIndex === undefined) {
return;
}
const media = this.target.children[this.childIndex];