From f72f6e3609b44fb5fa830e82467fcf5300b2064a Mon Sep 17 00:00:00 2001 From: Vivian Phung Date: Mon, 24 Jun 2024 18:32:10 -0400 Subject: [PATCH] fix: ProjectSearchBarDialog (search smaller screen) repeating Suggestions string --- .../ProjectSearchBarDialog.tsx | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBarDialog.tsx b/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBarDialog.tsx index 79a208e5..6f34c3af 100644 --- a/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBarDialog.tsx +++ b/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBarDialog.tsx @@ -100,22 +100,24 @@ export const ProjectSearchBarDialog = ({ }, )} > - {items.length > 0 - ? items.map((item, index) => ( - <> -
-

- Suggestions -

-
- - - )) - : inputValue && } + {items.length > 0 ? ( + <> +
+

+ Suggestions +

+
+ {items.map((item, index) => ( + + ))} + + ) : ( + inputValue && + )}