From 74ee64f1122bcd95cba138aff598d0cbe6d09e01 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Tue, 23 Nov 2021 16:17:42 +0100 Subject: [PATCH] Revert broken optimization in Tabulator streaming implementation --- panel/models/tabulator.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/panel/models/tabulator.ts b/panel/models/tabulator.ts index 5a7402134f..2a19776176 100644 --- a/panel/models/tabulator.ts +++ b/panel/models/tabulator.ts @@ -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()