Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: hide pagination when no search match

Scott Wilsonecea79f040b4
diff --git a/frontend/src/views/Org/UserPage/components/UserProjectsSection/UserProjectsTable.tsx b/frontend/src/views/Org/UserPage/components/UserProjectsSection/UserProjectsTable.tsx
index 17b4b0ba64..ab50937d93 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) => {
})}
</TBody>
</Table>
- <Pagination
- count={filteredProjects.length}
- page={page}
- perPage={perPage}
- onChangePage={setPage}
- onChangePerPage={setPerPage}
- />
+ {Boolean(filteredProjects.length) && (
+ <Pagination
+ count={filteredProjects.length}
+ page={page}
+ perPage={perPage}
+ onChangePage={setPage}
+ onChangePerPage={setPerPage}
+ />
+ )}
{!isLoading && !filteredProjects?.length && (
<EmptyState
title={