Add remove group items for maps and tokens

This commit is contained in:
Mitchell McCaffrey
2021-06-09 09:29:32 +10:00
parent 1ec67c7a0f
commit ee34c599da
5 changed files with 42 additions and 2 deletions

View File

@@ -62,8 +62,8 @@ function MapEditBar({ currentMap, disabled, onMapChange, onMapReset, onLoad }) {
setIsMapsRemoveModalOpen(false);
const selectedMaps = getSelectedMaps();
const selectedMapIds = selectedMaps.map((map) => map.id);
await removeMaps(selectedMapIds);
onGroupSelect();
await removeMaps(selectedMapIds);
// Removed the map from the map screen if needed
if (currentMap && selectedMapIds.includes(currentMap.id)) {
onMapChange(null, null);