Skip to content

Commit 91a6be2

Browse files
committed
fix(esf): convert values to string before applying toLowerCase
1 parent a0f13cc commit 91a6be2

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
@@ -501,7 +501,7 @@ export class IgxGridExcelStyleFilteringComponent implements OnDestroy {
501501

502502
private generateUniqueValues(columnValues: any[]) {
503503
if (this.column.dataType === DataType.String && this.column.filteringIgnoreCase) {
504-
const filteredUniqueValues = columnValues.map(s => s?.toLowerCase())
504+
const filteredUniqueValues = columnValues.map(s => s?.toString().toLowerCase())
505505
.reduce((map, val, i) => map.get(val) ? map : map.set(val, columnValues[i]),
506506
new Map);
507507

0 commit comments

Comments
 (0)