Skip to content

Commit 9a7a2d2

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Add null check.
1 parent b2b61a7 commit 9a7a2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/row.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy {
524524

525525
public isCellActive(visibleColumnIndex) {
526526
const node = this.grid.navigation.activeNode;
527-
const field = this.grid.visibleColumns[visibleColumnIndex].field;
527+
const field = this.grid.visibleColumns[visibleColumnIndex]?.field;
528528
const rowSpan = this.metaData?.cellMergeMeta?.get(field)?.rowSpan;
529529
if (rowSpan > 1) {
530530
return node ? (node.row >= this.index && node.row < this.index + rowSpan)

0 commit comments

Comments
 (0)