fix(table): another fix for table panel sorting, fixes #4544
This commit is contained in:
@@ -114,9 +114,13 @@ class TablePanelCtrl extends MetricsPanelCtrl {
|
||||
}
|
||||
}
|
||||
|
||||
this.render();
|
||||
}
|
||||
|
||||
render() {
|
||||
this.table = transformDataToTable(this.dataRaw, this.panel);
|
||||
this.table.sort(this.panel.sort);
|
||||
this.render(this.table);
|
||||
return super.render(this.table);
|
||||
}
|
||||
|
||||
toggleColumnSort(col, colIndex) {
|
||||
@@ -130,10 +134,7 @@ class TablePanelCtrl extends MetricsPanelCtrl {
|
||||
this.panel.sort.col = colIndex;
|
||||
this.panel.sort.desc = true;
|
||||
}
|
||||
|
||||
this.table = transformDataToTable(this.dataRaw, this.panel);
|
||||
this.table.sort(this.panel.sort);
|
||||
this.render(this.table);
|
||||
this.render();
|
||||
}
|
||||
|
||||
exportCsv() {
|
||||
|
||||
Reference in New Issue
Block a user