From 93298645e312c685d5a75a143667d6d522b472c5 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 26 Aug 2024 04:01:30 +0300 Subject: [PATCH] Render with ternary in bulk manage Closes #10360 --- .../CustomFormats/Manage/ManageCustomFormatsModalContent.tsx | 4 ++-- .../Manage/ManageDownloadClientsModalContent.tsx | 4 ++-- .../ImportLists/Manage/ManageImportListsModalContent.tsx | 4 ++-- .../Indexers/Indexers/Manage/ManageIndexersModalContent.tsx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/Manage/ManageCustomFormatsModalContent.tsx b/frontend/src/Settings/CustomFormats/CustomFormats/Manage/ManageCustomFormatsModalContent.tsx index 3b9cd2cf0..eab8a4d67 100644 --- a/frontend/src/Settings/CustomFormats/CustomFormats/Manage/ManageCustomFormatsModalContent.tsx +++ b/frontend/src/Settings/CustomFormats/CustomFormats/Manage/ManageCustomFormatsModalContent.tsx @@ -160,9 +160,9 @@ function ManageCustomFormatsModalContent( {error ?
{errorMessage}
: null} - {isPopulated && !error && !items.length && ( + {isPopulated && !error && !items.length ? ( {translate('NoCustomFormatsFound')} - )} + ) : null} {isPopulated && !!items.length && !isFetching && !isFetching ? ( {errorMessage} : null} - {isPopulated && !error && !items.length && ( + {isPopulated && !error && !items.length ? ( {translate('NoDownloadClientsFound')} - )} + ) : null} {isPopulated && !!items.length && !isFetching && !isFetching ? (
{errorMessage} : null} - {isPopulated && !error && !items.length && ( + {isPopulated && !error && !items.length ? ( {translate('NoImportListsFound')} - )} + ) : null} {isPopulated && !!items.length && !isFetching && !isFetching ? (
{errorMessage} : null} - {isPopulated && !error && !items.length && ( + {isPopulated && !error && !items.length ? ( {translate('NoIndexersFound')} - )} + ) : null} {isPopulated && !!items.length && !isFetching && !isFetching ? (