Hide drawers if empty.

This commit is contained in:
Dermot Duffy
2022-05-10 19:25:33 -07:00
parent 5bc1d3375c
commit 8ce15f87af
6 changed files with 49 additions and 12 deletions
+1 -1
View File
@@ -512,7 +512,7 @@ export class FrigateCardLiveCarousel extends FrigateCardMediaCarousel {
protected render(): TemplateResult | void {
const [slides, cameraToSlide] = this._getSlides();
this._cameraToSlide = cameraToSlide;
if (!slides || !this.liveConfig || !this.cameras || !this.view) {
if (!slides.length || !this.liveConfig || !this.cameras || !this.view) {
return;
}