Avoid calling for a re-render unless absolutely necessary.

This commit is contained in:
Dermot Duffy
2021-11-26 21:41:40 -08:00
parent 924b8ed02d
commit 285d659afc
+1 -1
View File
@@ -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)
) {