Skip to content

Commit

Permalink
Fix debug camera image not updating when loading (#12394)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 authored Jul 11, 2024
1 parent 4ee8557 commit fe4a737
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/components/camera/CameraImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export default function CameraImage({
}
}, [containerWidth, containerHeight, hasLoaded]);

useEffect(() => setHasLoaded(false), [camera]);

useEffect(() => {
if (!config || !imgRef.current) {
return;
Expand Down

0 comments on commit fe4a737

Please sign in to comment.