fix issue where download pending status wasn't displayed

This commit is contained in:
Violet Caulfield
2025-12-15 20:49:56 -06:00
parent fe65746ee0
commit b9deee7623

View File

@@ -67,12 +67,10 @@ export const useIsDownloading = (items: BaseItemDto[]) => {
...currentDownloads.map((download) => download.item.Id),
])
const itemIds = items.map((item) => item.Id)
return (
itemIds.length !== 0 &&
downloadQueue.values.length !== 0 &&
itemIds.filter((id) => downloadQueue.has(id)).length === items.length
items.length !== 0 &&
(pendingDownloads.length !== 0 || currentDownloads.length !== 0) &&
items.filter((item) => downloadQueue.has(item.Id)).length === items.length
)
}