From 1cb37dcc878f34a6959f2223c19bfc3aab32473a Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sun, 6 Feb 2022 14:56:26 -0800 Subject: [PATCH] Don't show next/previous controls if there's only 1 camera. --- src/components/live.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/live.ts b/src/components/live.ts index ad2d3b6e..9cc1f180 100644 --- a/src/components/live.ts +++ b/src/components/live.ts @@ -474,7 +474,7 @@ export class FrigateCardLiveCarousel extends FrigateCardMediaCarousel { const keys = Array.from(this.cameras.keys()); const currentIndex = keys.indexOf(this.view.camera); - if (currentIndex < 0) { + if (currentIndex < 0 || this.cameras.size <= 1) { return [null, null]; }