Updated update map

This commit is contained in:
Mitchell McCaffrey
2020-10-24 00:01:46 +11:00
parent b70bcdabd2
commit f8d7f7f19f
3 changed files with 9 additions and 8 deletions

View File

@@ -280,8 +280,8 @@ function SelectMapModal({
if (selectedMapIds.length === 1) {
// Update last used for cache invalidation
const lastUsed = Date.now();
await updateMap(selectedMapIds[0], { lastUsed });
onMapChange({ ...selectedMaps[0], lastUsed }, selectedMapStates[0]);
const updatedMap = await updateMap(selectedMapIds[0], { lastUsed });
onMapChange(updatedMap, selectedMapStates[0]);
} else {
onMapChange(null, null);
}