From 6031fab3b42de3b7e0fbdb3d3a94f5c155e12de1 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Mon, 26 Jan 2026 16:15:47 +0100 Subject: [PATCH] fix(collection): allow re-request of deleted items in a collection (#2339) Fix an issue where re-requesting an entire collection or some items of a collection is not possible if these items have been deleted. fix #1749 --- src/components/CollectionDetails/index.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/CollectionDetails/index.tsx b/src/components/CollectionDetails/index.tsx index 8c12ca21..0c8939bf 100644 --- a/src/components/CollectionDetails/index.tsx +++ b/src/components/CollectionDetails/index.tsx @@ -134,7 +134,10 @@ const CollectionDetails = ({ collection }: CollectionDetailsProps) => { type: 'or', }) && data.parts.filter( - (part) => !part.mediaInfo || part.mediaInfo.status === MediaStatus.UNKNOWN + (part) => + !part.mediaInfo || + part.mediaInfo.status === MediaStatus.DELETED || + part.mediaInfo.status === MediaStatus.UNKNOWN ).length > 0; const hasRequestable4k = @@ -144,7 +147,9 @@ const CollectionDetails = ({ collection }: CollectionDetailsProps) => { }) && data.parts.filter( (part) => - !part.mediaInfo || part.mediaInfo.status4k === MediaStatus.UNKNOWN + !part.mediaInfo || + part.mediaInfo.status4k === MediaStatus.DELETED || + part.mediaInfo.status4k === MediaStatus.UNKNOWN ).length > 0; const collectionAttributes: React.ReactNode[] = [];