Skip to content

Commit

Permalink
fix(filter): remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Feb 28, 2018
1 parent 0bf8928 commit 00b3654
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ export class FilterService {
const columnIndex = args.grid.getColumnIndex(columnId);
const columnDef = args.grid.getColumns()[columnIndex];
const fieldType = columnDef.type || FieldType.string;
const conditionalFilterFn = (columnDef.filter && columnDef.filter.conditionalFilter) ? columnDef.filter.conditionalFilter : null;
const filterSearchType = (columnDef.filterSearchType) ? columnDef.filterSearchType : null;

let cellValue = item[columnDef.queryField || columnDef.field];
Expand Down Expand Up @@ -212,9 +211,7 @@ export class FilterService {
cellValueLastChar: lastValueChar,
filterSearchType
};
if (conditionalFilterFn && typeof conditionalFilterFn === 'function') {
conditionalFilterFn(conditionOptions);
}

if (!FilterConditions.executeMappedCondition(conditionOptions)) {
return false;
}
Expand Down

0 comments on commit 00b3654

Please sign in to comment.