From 3b0d91e4a6224b1fdfb11eaa9f04dcc264bfa138 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Tue, 10 Jun 2025 01:23:53 +0200 Subject: [PATCH] Hide "scanlator filter" option chapters have no scanlator --- .../chapter/components/ChapterExcludeSanlatorsFilter.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx b/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx index 6c6008e7..1a86c960 100644 --- a/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx +++ b/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx @@ -25,6 +25,10 @@ export const ChapterExcludeSanlatorsFilter = ({ const { t } = useTranslation(); const popupState = usePopupState({ variant: 'dialog', popupId: 'chapter-list-options-scanlator-filter-dialog' }); + if (!scanlators.length) { + return null; + } + return ( <>