Properly detect active library filters

This commit is contained in:
schroda
2024-09-21 21:38:20 +02:00
parent 20eaa90c10
commit 7abfbd09ef

View File

@@ -26,6 +26,9 @@ export const LibraryToolbarMenu = ({
const active =
options.hasDownloadedChapters != null ||
options.hasUnreadChapters != null ||
options.hasBookmarkedChapters != null ||
options.hasDuplicateChapters != null ||
Object.values(options.hasStatus).some((hasStatus) => hasStatus != null) ||
Object.values(options.hasTrackerBinding).some((trackerFilterStatus) => trackerFilterStatus != null);
return (