Fix init/select out of sync issues.

This commit is contained in:
Dermot Duffy
2023-09-05 20:39:54 -07:00
parent 25150be36b
commit 1a4d38e609
4 changed files with 27 additions and 22 deletions
+1 -3
View File
@@ -102,9 +102,7 @@ export class FrigateCardCarousel extends LitElement {
plugins: this.plugins,
},
);
}
if (changedProps.has('selected')) {
} else if (changedProps.has('selected')) {
this._carousel?.selectSlide(this.selected);
}
}