mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 22:25:24 +03:00
remove duplicated logic
This commit is contained in:
parent
259b584266
commit
2e5aa10514
@ -314,10 +314,7 @@ export function RecordingView({
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const aspect =
|
const aspect = getCameraAspect(mainCamera);
|
||||||
fullResolution.width && fullResolution.height
|
|
||||||
? fullResolution.width / fullResolution.height
|
|
||||||
: camera.detect.width / camera.detect.height;
|
|
||||||
|
|
||||||
if (!aspect) {
|
if (!aspect) {
|
||||||
return undefined;
|
return undefined;
|
||||||
@ -345,7 +342,7 @@ export function RecordingView({
|
|||||||
mainWidth,
|
mainWidth,
|
||||||
mainHeight,
|
mainHeight,
|
||||||
mainCamera,
|
mainCamera,
|
||||||
fullResolution,
|
getCameraAspect,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const previewRowOverflows = useMemo(() => {
|
const previewRowOverflows = useMemo(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user