Skip to content

Commit

Permalink
Merge pull request #2815 from wazuh/fix/4.0-7.10-pagination-sca-table
Browse files Browse the repository at this point in the history
4.0-7.10 Fix the pagination in SCA ckecks table
  • Loading branch information
frankeros authored Jan 27, 2021
2 parents 21fa998 + d1a3f7b commit e1648d9
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions public/components/agents/sca/inventory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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}
/>
</EuiFlexItem>
Expand Down

0 comments on commit e1648d9

Please sign in to comment.