Added availability check in map loading overlay
This commit is contained in:
parent
22a577bcc7
commit
f025da716f
@ -18,7 +18,9 @@ function MapLoadingOverlay() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
requestRef.current = requestAnimationFrame(animate);
|
requestRef.current = requestAnimationFrame(animate);
|
||||||
progressBarRef.current.value = loadingProgressRef.current;
|
if (progressBarRef.current) {
|
||||||
|
progressBarRef.current.value = loadingProgressRef.current;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
requestRef.current = requestAnimationFrame(animate);
|
requestRef.current = requestAnimationFrame(animate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user