diff --git a/src/components/map/MapLoadingOverlay.js b/src/components/map/MapLoadingOverlay.js index 93d5fed..8374fc5 100644 --- a/src/components/map/MapLoadingOverlay.js +++ b/src/components/map/MapLoadingOverlay.js @@ -18,7 +18,9 @@ function MapLoadingOverlay() { return; } requestRef.current = requestAnimationFrame(animate); - progressBarRef.current.value = loadingProgressRef.current; + if (progressBarRef.current) { + progressBarRef.current.value = loadingProgressRef.current; + } } requestRef.current = requestAnimationFrame(animate);