Skip to content

Commit 44fead0

Browse files
committed
chore(*): fix a typing mistake
1 parent 8406fdb commit 44fead0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy
661661
* @param index
662662
*/
663663
public getRowByKey(key: any): RowType {
664-
const rec = this.filteredSortedData ?this.primaryKey ? this.filteredSortedData.find(r => r[this.primaryKey] === key) :
664+
const rec = this.filteredSortedData ? this.primaryKey ? this.filteredSortedData.find(r => r[this.primaryKey] === key) :
665665
this.filteredSortedData.find(r => r === key) : undefined;
666666
const index = this.dataView.findIndex(r => r.data && r.data === rec);
667667
if (index < 0 || index >= this.filteredSortedData.length) {

0 commit comments

Comments
 (0)