fix: Prevent map render on empty data

This commit is contained in:
2025-08-17 18:43:30 +00:00
committed by Tanner Collin (aider)
parent 316ea7bf86
commit 7b07a8049b

View File

@@ -266,7 +266,7 @@ function Map({data, loading, end, duration, slider, mapState, setMapState, setSu
setDrawnItems(items => items.filter(item => !deletedIds.includes(item.id)));
};
const showMap = Array.isArray(data);
const showMap = Array.isArray(data) && data.length > 0;
return (
<div className='container'>