Fix token and map setting update reset on modal closure
This commit is contained in:
@@ -13,6 +13,8 @@ function EditMapModal({ isOpen, onDone, map, mapState }) {
|
||||
const { updateMap, updateMapState } = useContext(MapDataContext);
|
||||
|
||||
function handleClose() {
|
||||
setMapSettingChanges({});
|
||||
setMapStateSettingChanges({});
|
||||
onDone();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user