Skip to content

Commit 7d37434

Browse files
committed
chore(*): explicitly return false if formGroup does not exist
1 parent 81b5164 commit 7d37434

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

projects/igniteui-angular/src/lib/grids/cell.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT
542542
const isInvalid = this.grid.validation?.isFieldInvalid(this.formGroup, this.column?.field);
543543
return !this.intRow.deleted && isInvalid;
544544
}
545+
return false;
545546
}
546547

547548
/**
@@ -554,6 +555,7 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT
554555
const isValidAfterEdit = this.grid.validation?.isFieldValidAfterEdit(this.formGroup, this.column?.field);
555556
return this.editMode && isValidAfterEdit;
556557
}
558+
return false;
557559
}
558560

559561
/**

0 commit comments

Comments
 (0)