Fix token and map setting update reset on modal closure
This commit is contained in:
parent
90d81c90b1
commit
f9a69a422b
@ -13,6 +13,8 @@ function EditMapModal({ isOpen, onDone, map, mapState }) {
|
|||||||
const { updateMap, updateMapState } = useContext(MapDataContext);
|
const { updateMap, updateMapState } = useContext(MapDataContext);
|
||||||
|
|
||||||
function handleClose() {
|
function handleClose() {
|
||||||
|
setMapSettingChanges({});
|
||||||
|
setMapStateSettingChanges({});
|
||||||
onDone();
|
onDone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ function EditTokenModal({ isOpen, onDone, token }) {
|
|||||||
const { updateToken } = useContext(TokenDataContext);
|
const { updateToken } = useContext(TokenDataContext);
|
||||||
|
|
||||||
function handleClose() {
|
function handleClose() {
|
||||||
|
setTokenSettingChanges({});
|
||||||
onDone();
|
onDone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user