Merge pull request #2668 from alecmerdler/fix-cor-table-filtering

Fix Cor Table Filtering
This commit is contained in:
Alec Merdler 2017-05-25 13:15:57 -07:00 committed by GitHub
commit a51afaaecf

View file

@ -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);
}
}