mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
Fix area check
This commit is contained in:
parent
34f1d875ab
commit
9a3f70ee2e
@ -901,7 +901,9 @@ function FaceAttempt({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return imgRef.current.naturalWidth * imgRef.current.naturalHeight;
|
return imgRef.current.naturalWidth * imgRef.current.naturalHeight;
|
||||||
}, [imgRef]);
|
// only refresh when severity changes
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [imgRef.current]);
|
||||||
|
|
||||||
// api calls
|
// api calls
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user