limit agent list total count to 10k (#135026)

This commit is contained in:
Julia Bardi 2022-06-23 16:58:23 +02:00 committed by GitHub
parent 69caa311bb
commit d61253aa0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}