Do not show groups when there are search results
Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
aa35348288
commit
56a44ce4a3
|
@ -19,6 +19,7 @@ export function Backlog() {
|
||||||
|
|
||||||
const onClickToggleMobileSideMenu = useShopStore((state) => state.switchSideMenu);
|
const onClickToggleMobileSideMenu = useShopStore((state) => state.switchSideMenu);
|
||||||
const isMobile = useShopStore((state) => state.isMobile);
|
const isMobile = useShopStore((state) => state.isMobile);
|
||||||
|
const showSearch = useShopStore((state) => state.listed_cards.length > 0);
|
||||||
|
|
||||||
// #!render_count
|
// #!render_count
|
||||||
console.log("Backlog renders: ", renderCount)
|
console.log("Backlog renders: ", renderCount)
|
||||||
|
@ -48,11 +49,7 @@ export function Backlog() {
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{showSearch ? <BacklogSearchResult/> : <BacklogGroups/>}
|
||||||
|
|
||||||
<BacklogSearchResult/>
|
|
||||||
|
|
||||||
<BacklogGroups/>
|
|
||||||
|
|
||||||
{provided.placeholder && (
|
{provided.placeholder && (
|
||||||
<div style={{display: 'none'}}>
|
<div style={{display: 'none'}}>
|
||||||
|
|
Loading…
Reference in New Issue