Fix bug with map staying live after deletion

This commit is contained in:
Mitchell McCaffrey 2020-04-24 16:18:17 +10:00
parent ed8f3bd283
commit db8e0c14fb

View File

@ -6,6 +6,7 @@ function useDataSource(data, defaultSources) {
const [dataSource, setDataSource] = useState(null);
useEffect(() => {
if (!data) {
setDataSource(null);
return;
}
let url = null;