Added map state to the database

This commit is contained in:
Mitchell McCaffrey
2020-04-23 17:23:34 +10:00
parent 071cd3ea7f
commit 25b215d4e4
6 changed files with 118 additions and 67 deletions

View File

@@ -13,10 +13,8 @@ function AddMapButton({ onMapChange }) {
setIsAddModalOpen(false);
}
function handleDone(map) {
if (map) {
onMapChange(map);
}
function handleDone(map, mapState) {
onMapChange(map, mapState);
closeModal();
}