mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: hide pagination when no search match
This commit is contained in:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user