From d1a3f7b6a001abb7c9a4521c6856a263f3b394cc Mon Sep 17 00:00:00 2001 From: Desvelao Date: Fri, 22 Jan 2021 15:26:25 +0100 Subject: [PATCH] fix(frontend): Fix pagination in SCA checks table --- public/components/agents/sca/inventory.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/public/components/agents/sca/inventory.tsx b/public/components/agents/sca/inventory.tsx index 8db0b56ed0..773815dd43 100644 --- a/public/components/agents/sca/inventory.tsx +++ b/public/components/agents/sca/inventory.tsx @@ -411,19 +411,7 @@ export class Inventory extends Component { onClick: () => this.toggleDetails(item) }; }; - const pagination = { - pageIndex: this.state.pageIndex, - pageSize: 10, - totalItemCount: (this.checks || []).length, - pageSizeOptions: [10, 25, 50, 100] - }; - const search = { - box: { - incremental: this.state.incremental, - schema: true - } - }; const sorting = { sort: { field: 'id', @@ -579,7 +567,7 @@ export class Inventory extends Component { itemIdToExpandedRowMap={this.state.itemIdToExpandedRowMap} isExpandable={true} sorting={sorting} - pagination={pagination} + pagination={true} loading={this.state.loadingPolicy} />