From 5c6fc37c658e357d6cd4ff62d6b0c8a45e70537e Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sun, 19 Jul 2026 15:23:42 -0400 Subject: [PATCH] cleanup --- backend/endpoints/responses/__init__.py | 1 - frontend/src/v2/components/Dialogs/DeleteRomDialog.vue | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/endpoints/responses/__init__.py b/backend/endpoints/responses/__init__.py index 5ddcd1c65..e1dfe5042 100644 --- a/backend/endpoints/responses/__init__.py +++ b/backend/endpoints/responses/__init__.py @@ -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] diff --git a/frontend/src/v2/components/Dialogs/DeleteRomDialog.vue b/frontend/src/v2/components/Dialogs/DeleteRomDialog.vue index 4e34c00b8..3c047d90c 100644 --- a/frontend/src/v2/components/Dialogs/DeleteRomDialog.vue +++ b/frontend/src/v2/components/Dialogs/DeleteRomDialog.vue @@ -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);