Skip to content

Commit cfa612a

Browse files
committed
fix(esf): convert values to string before applying toLowerCase
1 parent 7655ceb commit cfa612a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ export class IgxGridExcelStyleFilteringComponent implements OnDestroy {
616616

617617
private generateUniqueValues(columnValues: any[]) {
618618
if (this.column.dataType === DataType.String && this.column.filteringIgnoreCase) {
619-
const filteredUniqueValues = columnValues.map(s => s?.toLowerCase())
619+
const filteredUniqueValues = columnValues.map(s => s?.toString().toLowerCase())
620620
.reduce((map, val, i) => map.get(val) ? map : map.set(val, columnValues[i]),
621621
new Map);
622622

0 commit comments

Comments
 (0)