DistanceMeter bugfix

*Fixed DistanceMeter not reseting on scenery change
This commit is contained in:
izawartka 2025-07-26 17:49:54 +02:00
parent 6bd954ccb0
commit 032d93a51c

View File

@ -18,6 +18,10 @@ export default function DistanceMeter() {
});
}
useEffect(() => {
setDistancePoints([]);
}, [setDistancePoints]);
if(!scenery || !Array.isArray(distancePoints)) return null;
return (