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);
|
const [dataSource, setDataSource] = useState(null);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
|
setDataSource(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let url = null;
|
let url = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user