From 3068e874b79fa834a9233ac9dae3d98cc4bb1d87 Mon Sep 17 00:00:00 2001 From: alecmerdler Date: Thu, 25 May 2017 12:47:02 -0700 Subject: [PATCH] avoid filtering by sorting fields --- static/js/directives/ui/cor-table/cor-table.component.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/static/js/directives/ui/cor-table/cor-table.component.ts b/static/js/directives/ui/cor-table/cor-table.component.ts index 1be4196b7..30c08baf8 100644 --- a/static/js/directives/ui/cor-table/cor-table.component.ts +++ b/static/js/directives/ui/cor-table/cor-table.component.ts @@ -65,9 +65,6 @@ export class CorTableComponent implements OnChanges { columnMap[col.datafield] = col; }); - const filterCols = this.columns.filter(col => !!col.sortfield) - .map(col => col.datafield); - const numericCols = this.columns.filter(col => col.isNumeric()) .map(col => col.datafield); @@ -81,6 +78,6 @@ export class CorTableComponent implements OnChanges { return item; }); - this.orderedData = this.tableService.buildOrderedItems(processed, this.options, filterCols, numericCols); + this.orderedData = this.tableService.buildOrderedItems(processed, this.options, this.filterFields, numericCols); } }