Fix token and map setting update reset on modal closure

This commit is contained in:
Mitchell McCaffrey 2020-10-07 16:42:40 +11:00
parent 90d81c90b1
commit f9a69a422b
2 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,8 @@ function EditMapModal({ isOpen, onDone, map, mapState }) {
const { updateMap, updateMapState } = useContext(MapDataContext);
function handleClose() {
setMapSettingChanges({});
setMapStateSettingChanges({});
onDone();
}

View File

@ -12,6 +12,7 @@ function EditTokenModal({ isOpen, onDone, token }) {
const { updateToken } = useContext(TokenDataContext);
function handleClose() {
setTokenSettingChanges({});
onDone();
}