fix(datatables): saved orderBy was always overridden by the default one (#3052)
This commit is contained in:
+1
-1
@@ -172,6 +172,7 @@ function ($scope, $controller, DatatableService, EndpointProvider) {
|
||||
this.setDefaults();
|
||||
this.prepareTableFromDataset();
|
||||
|
||||
this.state.orderBy = this.orderBy;
|
||||
var storedOrder = DatatableService.getDataTableOrder(this.tableKey);
|
||||
if (storedOrder !== null) {
|
||||
this.state.reverseOrder = storedOrder.reverse;
|
||||
@@ -203,6 +204,5 @@ function ($scope, $controller, DatatableService, EndpointProvider) {
|
||||
this.columnVisibility = storedColumnVisibility;
|
||||
this.columnVisibility.state.open = false;
|
||||
}
|
||||
this.state.orderBy = this.orderBy;
|
||||
};
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user