Skip to content

Commit 92a818a

Browse files
committed
chore(*): fixing lint warnings
1 parent fcdba88 commit 92a818a

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

projects/igniteui-angular/src/lib/grids/api.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ export class GridBaseAPIService<T extends IgxGridBaseDirective & GridType> {
395395

396396
/**
397397
* Returns the index of the record in the data view by pk or -1 if not found or primaryKey is not set.
398+
*
398399
* @param pk
399400
*/
400401
public get_rec_index_by_id(pk: string | number): number {

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5976,18 +5976,18 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
59765976
let index = rowID;
59775977
if (rowID == null) {
59785978
if (asChild) {
5979-
console.warn("The record cannot be added as a child to an unspecified record.");
5979+
console.warn('The record cannot be added as a child to an unspecified record.');
59805980
return;
59815981
}
59825982
index = 0;
59835983
} else if (this.primaryKey !== null) {
59845984
// find the index of the record with that PK
59855985
index = this.gridAPI.get_rec_index_by_id(rowID);
59865986
rowID = index;
5987-
if (index == -1) {
5988-
console.warn("No row with the specified PK was found.");
5987+
if (index === -1) {
5988+
console.warn('No row with the specified PK was found.');
59895989
return;
5990-
}
5990+
}
59915991
}
59925992
// check if the index is valid - won't support anything outside the data view
59935993
if (index >= 0 && index < this.dataView.length) {
@@ -6005,7 +6005,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
60056005
}
60066006
this.beginAddRowForIndex(rowID, asChild);
60076007
} else {
6008-
console.warn("The row with the specified PK or index is outside of the current data view.");
6008+
console.warn('The row with the specified PK or index is outside of the current data view.');
60096009
}
60106010
}
60116011

@@ -6015,7 +6015,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
60156015
if (row !== undefined) {
60166016
this.crudService.enterAddRowMode(row, asChild);
60176017
} else {
6018-
console.warn("No row with the specified PK or index was found.");
6018+
console.warn('No row with the specified PK or index was found.');
60196019
}
60206020
}
60216021

projects/igniteui-angular/src/lib/grids/grid/grid-add-row.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ describe('IgxGrid - Row Adding #grid', () => {
487487
fixture.detectChanges();
488488

489489
grid.navigateTo(20, 0);
490-
490+
491491
await wait(DEBOUNCETIME);
492492
fixture.detectChanges();
493493

0 commit comments

Comments
 (0)