From ecea79f040b406ca93931ac74374363ef236e4a1 Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Tue, 26 Nov 2024 17:20:49 -0800 Subject: [PATCH] fix: hide pagination when no search match --- .../UserProjectsSection/UserProjectsTable.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/Org/UserPage/components/UserProjectsSection/UserProjectsTable.tsx b/frontend/src/views/Org/UserPage/components/UserProjectsSection/UserProjectsTable.tsx index 17b4b0ba6..ab50937d9 100644 --- a/frontend/src/views/Org/UserPage/components/UserProjectsSection/UserProjectsTable.tsx +++ b/frontend/src/views/Org/UserPage/components/UserProjectsSection/UserProjectsTable.tsx @@ -127,13 +127,15 @@ export const UserProjectsTable = ({ membershipId, handlePopUpOpen }: Props) => { })} - + {Boolean(filteredProjects.length) && ( + + )} {!isLoading && !filteredProjects?.length && (