Skip to content

Commit

Permalink
Fixed bug where tables with remote pagination would modify the wrong (#…
Browse files Browse the repository at this point in the history
…2801)

rows if not yet sorted.
  • Loading branch information
samuelyeewl authored Oct 6, 2021
1 parent 53137bd commit c35200e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions panel/widgets/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,11 +986,8 @@ def _update_column(self, column, array):
nrows = self.page_size
start = (self.page-1)*nrows
end = start+nrows
if self.sorters:
index = self._processed.iloc[start:end].index.values
self.value[column].loc[index] = array
else:
self.value[column].iloc[start:end] = array
index = self._processed.iloc[start:end].index.values
self.value[column].loc[index] = array

def _update_selection(self, indices):
if self.pagination != 'remote':
Expand Down

0 comments on commit c35200e

Please sign in to comment.