Fix "showNsfw" filtering in browse source page
If disabled, only nsfw sources were shown.
This commit is contained in:
@@ -34,6 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||
- (**Reader**) Fix wrongly positioned mobile progress bar current page indicator
|
||||
- (**Reader**) Fix mobile progress bar previous/next chapter button visibility on hover and while disabled
|
||||
- (**Reader**) Fix jumping back to the first page on window resize
|
||||
- (**Browse**) Fix showing only nsfw sources in the browse source page when the "show nsfw" setting is disabled
|
||||
|
||||
## [20260509.01] (r3147) - 2026-05-09
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ export function Sources({ tabsMenuHeight }: { tabsMenuHeight: number }) {
|
||||
const filteredSources = useMemo(
|
||||
() =>
|
||||
SourceService.filter(sources, {
|
||||
isNsfw: showNsfw ? undefined : true,
|
||||
isNsfw: showNsfw ? undefined : false,
|
||||
languages: shownLangs,
|
||||
keepLocalSource: true,
|
||||
enabled: true,
|
||||
@@ -55,7 +55,7 @@ export function Sources({ tabsMenuHeight }: { tabsMenuHeight: number }) {
|
||||
const sourcesForLanguageFilter = useMemo(
|
||||
() =>
|
||||
SourceService.filter(sources, {
|
||||
isNsfw: showNsfw ? undefined : true,
|
||||
isNsfw: showNsfw ? undefined : false,
|
||||
removeLocalSource: true,
|
||||
}),
|
||||
[sources],
|
||||
|
||||
Reference in New Issue
Block a user