Fix bug with map staying live after deletion
This commit is contained in:
parent
ed8f3bd283
commit
db8e0c14fb
@ -6,6 +6,7 @@ function useDataSource(data, defaultSources) {
|
||||
const [dataSource, setDataSource] = useState(null);
|
||||
useEffect(() => {
|
||||
if (!data) {
|
||||
setDataSource(null);
|
||||
return;
|
||||
}
|
||||
let url = null;
|
||||
|
Loading…
Reference in New Issue
Block a user