Merge pull request #2668 from alecmerdler/fix-cor-table-filtering
Fix Cor Table Filtering
This commit is contained in:
commit
a51afaaecf
1 changed files with 1 additions and 4 deletions
|
@ -65,9 +65,6 @@ export class CorTableComponent implements OnChanges {
|
||||||
columnMap[col.datafield] = col;
|
columnMap[col.datafield] = col;
|
||||||
});
|
});
|
||||||
|
|
||||||
const filterCols = this.columns.filter(col => !!col.sortfield)
|
|
||||||
.map(col => col.datafield);
|
|
||||||
|
|
||||||
const numericCols = this.columns.filter(col => col.isNumeric())
|
const numericCols = this.columns.filter(col => col.isNumeric())
|
||||||
.map(col => col.datafield);
|
.map(col => col.datafield);
|
||||||
|
|
||||||
|
@ -81,6 +78,6 @@ export class CorTableComponent implements OnChanges {
|
||||||
return item;
|
return item;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.orderedData = this.tableService.buildOrderedItems(processed, this.options, filterCols, numericCols);
|
this.orderedData = this.tableService.buildOrderedItems(processed, this.options, this.filterFields, numericCols);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue