Skip to content

Commit

Permalink
Revert "[Fleet][Cloud] Enrollment token table may show an empty last …
Browse files Browse the repository at this point in the history
…page elastic#167663 (elastic#188049)" (elastic#194343)

## Summary

Resolves elastic#194339.

This PR reverts elastic#188049 as it inadvertently broke pagination of the
enrollment tokens page. This means that elastic#167663 will need to be
re-opened and fixed in a different way.

(cherry picked from commit 283f6e6)
  • Loading branch information
jen-huang committed Sep 30, 2024
1 parent 4c6f2e9 commit 0b48176
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ export const EnrollmentTokenListPage: React.FunctionComponent<{}> = () => {
const agentPolicy = agentPoliciesById[enrollmentKey.policy_id];
return !agentPolicy?.is_managed;
}) || [];
const filteredTotal = rowItems.length;

const columns = [
{
Expand Down Expand Up @@ -295,7 +294,7 @@ export const EnrollmentTokenListPage: React.FunctionComponent<{}> = () => {
pagination={{
pageIndex: pagination.currentPage - 1,
pageSize: pagination.pageSize,
totalItemCount: filteredTotal,
totalItemCount: total,
pageSizeOptions,
}}
onChange={({ page }: { page: { index: number; size: number } }) => {
Expand Down

0 comments on commit 0b48176

Please sign in to comment.