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);
|
||||
|
||||
function handleClose() {
|
||||
setMapSettingChanges({});
|
||||
setMapStateSettingChanges({});
|
||||
onDone();
|
||||
}
|
||||
|
||||
|
@ -12,6 +12,7 @@ function EditTokenModal({ isOpen, onDone, token }) {
|
||||
const { updateToken } = useContext(TokenDataContext);
|
||||
|
||||
function handleClose() {
|
||||
setTokenSettingChanges({});
|
||||
onDone();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user