Avoid calling for a re-render unless absolutely necessary.
This commit is contained in:
+1
-1
@@ -806,7 +806,7 @@ export class FrigateCard extends LitElement {
|
|||||||
}
|
}
|
||||||
let requestRefresh = false;
|
let requestRefresh = false;
|
||||||
if (
|
if (
|
||||||
this._isAspectRatioEnforced() &&
|
this._view.isGalleryView() &&
|
||||||
(mediaShowInfo.width != this._mediaShowInfo?.width ||
|
(mediaShowInfo.width != this._mediaShowInfo?.width ||
|
||||||
mediaShowInfo.height != this._mediaShowInfo?.height)
|
mediaShowInfo.height != this._mediaShowInfo?.height)
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user