mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-31 00:18:55 +01:00
Fix debug camera image not updating when loading (#12394)
This commit is contained in:
parent
4ee8557061
commit
fe4a737421
@ -48,6 +48,8 @@ export default function CameraImage({
|
|||||||
}
|
}
|
||||||
}, [containerWidth, containerHeight, hasLoaded]);
|
}, [containerWidth, containerHeight, hasLoaded]);
|
||||||
|
|
||||||
|
useEffect(() => setHasLoaded(false), [camera]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!config || !imgRef.current) {
|
if (!config || !imgRef.current) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user