Skip to content

Commit

Permalink
improvement in pagination component (litmuschaos#4832)
Browse files Browse the repository at this point in the history
Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com>
Co-authored-by: Namkyu Park <53862866+namkyu1999@users.noreply.github.com>
Co-authored-by: Sahil <sahil.kumar@harness.io>
Signed-off-by: andoriyaprashant <prashantandoriya@gmail.com>
  • Loading branch information
3 people authored and andoriyaprashant committed Sep 7, 2024
1 parent 28d75cc commit bba4df4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chaoscenter/web/src/controllers/Environments/Environment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ const EnvironmentController: React.FC = () => {
itemCount: totalEnvironments ?? 0,
pageCount: totalEnvironments ? Math.ceil(totalEnvironments / limit) : 1,
pageIndex: page,
pageSizeOptions: [...new Set([15, 30, limit])].sort(),
pageSizeOptions: [...new Set([5, 10, 15, 30, limit])].sort(),
pageSize: limit,
showPagination: true,
onPageSizeChange: event => setLimit(event)
}
};
Expand Down

0 comments on commit bba4df4

Please sign in to comment.