Fix "scanlator filter" for chapters without scanlator
This commit is contained in:
@@ -58,7 +58,7 @@ function bookmarkedFilter(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function scanlatorFilter(excludedScanlators: string[], { scanlator }: ChapterScanlatorInfo): boolean {
|
function scanlatorFilter(excludedScanlators: string[], { scanlator }: ChapterScanlatorInfo): boolean {
|
||||||
return !!scanlator && !excludedScanlators.includes(scanlator);
|
return !scanlator || !excludedScanlators.includes(scanlator);
|
||||||
}
|
}
|
||||||
|
|
||||||
type TChapterSort = Pick<ChapterType, 'sourceOrder' | 'fetchedAt' | 'chapterNumber' | 'uploadDate'>;
|
type TChapterSort = Pick<ChapterType, 'sourceOrder' | 'fetchedAt' | 'chapterNumber' | 'uploadDate'>;
|
||||||
|
|||||||
Reference in New Issue
Block a user