Skip to content

Commit 6c76b79

Browse files
authored
fix(compass-crud): account for pagination in expanded table view COMPASS-9161 (#6836)
fix(compass-crud): doc numbering on expanded table view COMPASS-9161
1 parent 74a5cab commit 6c76b79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/compass-crud/src/components/table-view/document-table-view.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,9 @@ class DocumentTableView extends React.Component<DocumentTableViewProps> {
629629

630630
(this.gridApi as any).gridOptionsWrapper.gridOptions.context.path =
631631
params.path;
632-
this.gridApi.setRowData(this.createRowData(this.props.docs, 1));
632+
this.gridApi.setRowData(
633+
this.createRowData(this.props.docs, this.props.start)
634+
);
633635
this.gridApi.setColumnDefs(headers);
634636
}
635637
this.gridApi.refreshCells({ force: true });

0 commit comments

Comments
 (0)