From 56a44ce4a3fd66d989aef09203ec0f0bc330cd60 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Fri, 23 Feb 2024 17:28:28 +0800 Subject: [PATCH] Do not show groups when there are search results Signed-off-by: Egor Savkin --- static/js/shop/Backlog.jsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/static/js/shop/Backlog.jsx b/static/js/shop/Backlog.jsx index 67b4bf4..f1b6874 100644 --- a/static/js/shop/Backlog.jsx +++ b/static/js/shop/Backlog.jsx @@ -19,6 +19,7 @@ export function Backlog() { const onClickToggleMobileSideMenu = useShopStore((state) => state.switchSideMenu); const isMobile = useShopStore((state) => state.isMobile); + const showSearch = useShopStore((state) => state.listed_cards.length > 0); // #!render_count console.log("Backlog renders: ", renderCount) @@ -48,11 +49,7 @@ export function Backlog() { ) : null} - - - - - + {showSearch ? : } {provided.placeholder && (