This commit is contained in:
Georges-Antoine Assi
2026-07-19 15:23:42 -04:00
parent 556fa8fa01
commit 5c6fc37c65
2 changed files with 1 additions and 5 deletions

View File

@@ -149,6 +149,5 @@ TaskStatusResponse = Union[
class BulkOperationResponse(TypedDict):
successful_items: int
# IDs that failed to delete, so the client can keep them selected for retry.
failed_ids: list[int]
errors: list[str]

View File

@@ -117,10 +117,7 @@ async function deleteRoms() {
}
}
romsStore.resetSelection();
// Drop the deleted ROMs from the v2 gallery selection too — otherwise
// the SelectionBar stays open pointing at rows that no longer exist,
// and re-running an action 404s. removeIds only touches the deleted
// subset, so a partial (or failed) delete keeps the rest selected.
// Drop the deleted ROMs from the gallery selection
gallerySelectionStore.removeIds(deletedRoms.map((rom) => rom.id));
romsStore.remove(deletedRoms);
galleryRomsStore.remove(deletedRoms);