Skip to content

Commit

Permalink
Revert broken optimization in Tabulator streaming implementation (#2944)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Nov 23, 2021
1 parent 74092c0 commit 9c400f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions panel/models/tabulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,8 @@ export class DataTabulatorView extends PanelHTMLBoxView {
addData(): void {
const rows = this.tabulator.rowManager.getRows()
const last_row = rows[rows.length-1]
const start = ((last_row?.data._index + 1) || 0)
let data = transform_cds_to_records(this.model.source, true, start)
this.tabulator.addData(data)
const start = ((last_row?.data._index) || 0)
this.setData()
if (this.model.follow && last_row)
this.tabulator.scrollToRow(start, "top", false)
this.postUpdate()
Expand Down

0 comments on commit 9c400f1

Please sign in to comment.