From b3602c3809a05dc10aa947c580b7e77144a8decb Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Wed, 9 Oct 2024 20:38:27 -0700 Subject: [PATCH] fix: Correctly determine whether to show PTZ controls (#1631) --- src/components/live/live.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/live/live.ts b/src/components/live/live.ts index ab1ad49a..2b06101b 100644 --- a/src/components/live/live.ts +++ b/src/components/live/live.ts @@ -571,7 +571,7 @@ export class FrigateCardLiveCarousel extends LitElement { : null; const forcePTZVisibility = !this._mediaHasLoaded || - this.viewFilterCameraID !== view.camera || + (!!this.viewFilterCameraID && this.viewFilterCameraID !== view.camera) || view.context?.ptzControls?.enabled === false ? false : view.context?.ptzControls?.enabled;