We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8406fdb commit 44fead0Copy full SHA for 44fead0
projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.component.ts
@@ -661,7 +661,7 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy
661
* @param index
662
*/
663
public getRowByKey(key: any): RowType {
664
- const rec = this.filteredSortedData ?this.primaryKey ? this.filteredSortedData.find(r => r[this.primaryKey] === key) :
+ const rec = this.filteredSortedData ? this.primaryKey ? this.filteredSortedData.find(r => r[this.primaryKey] === key) :
665
this.filteredSortedData.find(r => r === key) : undefined;
666
const index = this.dataView.findIndex(r => r.data && r.data === rec);
667
if (index < 0 || index >= this.filteredSortedData.length) {
0 commit comments