Avoid calling for a re-render unless absolutely necessary.
This commit is contained in:
1 parent
924b8ed02d
commit
285d659afc
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user