Skip to content

Commit 854b537

Browse files
committed
Fix #121 Only display filtered data
1 parent a4feda0 commit 854b537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/body/Body.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class DataTableBody implements OnInit, OnDestroy {
142142
let rowIndex = idxs.first;
143143

144144
let endSpliceIdx = refresh ? this.state.rowCount : idxs.last - idxs.first;
145-
this.rows.splice(0, endSpliceIdx);
145+
this.rows = this.rows.slice(0, endSpliceIdx);
146146

147147
while (rowIndex < idxs.last && rowIndex < this.state.rowCount) {
148148
let row = this.state.rows[rowIndex];

0 commit comments

Comments
 (0)