From ed0ae354bb28e9fbbecaed272c1c7de890c34a32 Mon Sep 17 00:00:00 2001 From: Julia Bardi <90178898+juliaElastic@users.noreply.github.com> Date: Thu, 23 Jun 2022 16:58:23 +0200 Subject: [PATCH] limit agent list total count to 10k (#135026) (cherry picked from commit d61253aa0e00af5cbe24d8eb4fd96c6863d1c6fa) --- .../fleet/sections/agents/agent_list_page/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx index 9ab39134c2cdc..bc55e477b9993 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx @@ -626,7 +626,7 @@ export const AgentListPage: React.FunctionComponent<{}> = () => { pagination={{ pageIndex: pagination.currentPage - 1, pageSize: pagination.pageSize, - totalItemCount: totalAgents, + totalItemCount: Math.min(totalAgents, SO_SEARCH_LIMIT), pageSizeOptions, }} isSelectable={true}