Fix debug camera image not updating when loading (#12394)

This commit is contained in:
Josh Hawkins authored and GitHub committed 2024-07-11 09:10:37 -06:00
1 parent 4ee8557061
commit fe4a737421
1 file changed
+2
@@ -48,6 +48,8 @@ export default function CameraImage({
}
}, [containerWidth, containerHeight, hasLoaded]);
useEffect(() => setHasLoaded(false), [camera]);
useEffect(() => {
if (!config || !imgRef.current) {
return;