Skip to content

Commit f9e4d99

Browse files
Merge pull request #8421 from IgniteUI/ibarakov/fix-8420-master
fix(esf): convert values to string before applying toLowerCase
2 parents a0f13cc + 91a6be2 commit f9e4d99

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)