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.
2 parents a868784 + c379774 commit 6d66d25Copy full SHA for 6d66d25
projects/igniteui-angular/src/lib/grids/grid-base.directive.ts
@@ -3149,7 +3149,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
3149
*/
3150
public generateRowID(): string | number {
3151
const primaryColumn = this.columnList.find(col => col.field === this.primaryKey);
3152
- const idType = primaryColumn ? primaryColumn.dataType : this.data.length ? typeof (this.data[0][this.primaryKey]) : 'string';
+ const idType = this.data.length ? typeof (this.data[0][this.primaryKey]) : primaryColumn ? primaryColumn.dataType : 'string';
3153
return idType === 'string' ? uuidv4() : FAKE_ROW_ID--;
3154
}
3155
0 commit comments