From 41bcb2e7d0033affc845664de353f8f53b65ede6 Mon Sep 17 00:00:00 2001 From: Vivian Phung Date: Mon, 24 Jun 2024 18:51:31 -0400 Subject: [PATCH] fix: ProjectSearchBarDialog `suppressRefError` (#222) This PR resolves issues with the Project Search Bar component where `getMenuProps` was causing reference errors. By adding `suppressRefError: true` to `getMenuProps` in both `ProjectSearchBar` and `ProjectSearchBarDialog`, the warnings are suppressed. --- --- .../projects/ProjectSearchBar/ProjectSearchBar.tsx | 2 +- .../ProjectSearchBar/ProjectSearchBarDialog.tsx | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBar.tsx b/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBar.tsx index 0c7e3b5..df3b09b 100644 --- a/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBar.tsx +++ b/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBar.tsx @@ -62,7 +62,7 @@ export const ProjectSearchBar = ({ onChange }: ProjectSearchBarProps) => {
} placeholder="Search" appearance="borderless" @@ -91,7 +91,15 @@ export const ProjectSearchBarDialog = ({
{/* Content */} -
+
{items.length > 0 ? items.map((item, index) => ( <>