Skip to content

Commit 8b663fe

Browse files
authored
Merge pull request #122 from jntakpe/master
Fix #121 Only display filtered data
2 parents a4feda0 + 854b537 commit 8b663fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/body/Body.ts

+1-1
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)