From 07e59aa5cf3eb0de3e45b93e36b6bdb98d069d33 Mon Sep 17 00:00:00 2001 From: Wiktor Gut Date: Tue, 10 Sep 2024 08:49:51 +0200 Subject: [PATCH 1/2] Filters' conditional rendering --- src/components/Search/SearchPageHeader.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/Search/SearchPageHeader.tsx b/src/components/Search/SearchPageHeader.tsx index d645be6b17be..0a4e02b05ec8 100644 --- a/src/components/Search/SearchPageHeader.tsx +++ b/src/components/Search/SearchPageHeader.tsx @@ -295,7 +295,7 @@ function SearchPageHeader({queryJSON, hash, onSelectDeleteOption, setOfflineModa icon={headerIcon} subtitleStyles={subtitleStyles} > - {headerButtonsOptions.length > 0 && ( + {headerButtonsOptions.length > 0 ? ( null} shouldAlwaysShowDropdownMenu @@ -305,13 +305,14 @@ function SearchPageHeader({queryJSON, hash, onSelectDeleteOption, setOfflineModa options={headerButtonsOptions} isSplitButton={false} /> + ) : ( +