From 285d659afc8978678ec990282974b56565e24adb Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Fri, 26 Nov 2021 21:41:40 -0800 Subject: [PATCH] Avoid calling for a re-render unless absolutely necessary. --- src/card.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/card.ts b/src/card.ts index 0fa946f0..8ebc42cc 100644 --- a/src/card.ts +++ b/src/card.ts @@ -806,7 +806,7 @@ export class FrigateCard extends LitElement { } let requestRefresh = false; if ( - this._isAspectRatioEnforced() && + this._view.isGalleryView() && (mediaShowInfo.width != this._mediaShowInfo?.width || mediaShowInfo.height != this._mediaShowInfo?.height) ) {