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
This commit is contained in:
@@ -134,7 +134,10 @@ const CollectionDetails = ({ collection }: CollectionDetailsProps) => {
|
|||||||
type: 'or',
|
type: 'or',
|
||||||
}) &&
|
}) &&
|
||||||
data.parts.filter(
|
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;
|
).length > 0;
|
||||||
|
|
||||||
const hasRequestable4k =
|
const hasRequestable4k =
|
||||||
@@ -144,7 +147,9 @@ const CollectionDetails = ({ collection }: CollectionDetailsProps) => {
|
|||||||
}) &&
|
}) &&
|
||||||
data.parts.filter(
|
data.parts.filter(
|
||||||
(part) =>
|
(part) =>
|
||||||
!part.mediaInfo || part.mediaInfo.status4k === MediaStatus.UNKNOWN
|
!part.mediaInfo ||
|
||||||
|
part.mediaInfo.status4k === MediaStatus.DELETED ||
|
||||||
|
part.mediaInfo.status4k === MediaStatus.UNKNOWN
|
||||||
).length > 0;
|
).length > 0;
|
||||||
|
|
||||||
const collectionAttributes: React.ReactNode[] = [];
|
const collectionAttributes: React.ReactNode[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user