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