diff --git a/src/modals/SelectMapModal.js b/src/modals/SelectMapModal.js index 9fecc92..47a9220 100644 --- a/src/modals/SelectMapModal.js +++ b/src/modals/SelectMapModal.js @@ -328,9 +328,11 @@ function SelectMapModal({ const map = selectedMaps[0]; const mapState = await getMapStateFromDB(map.id); if (map.type === "file") { + setIsLoading(true); await updateMap(map.id, { lastUsed }); const updatedMap = await getMapFromDB(map.id); onMapChange(updatedMap, mapState); + setIsLoading(false); } else { onMapChange(map, mapState); } @@ -433,7 +435,7 @@ function SelectMapModal({ />