forked from Github/frigate
Fix debug camera image not updating when loading (#12394)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user