Skip to content

Commit

Permalink
fix(primeng/pFrozenColumn): update condition for a dynamic row
Browse files Browse the repository at this point in the history
  • Loading branch information
volvachev authored and Egor Volvachev committed Mar 22, 2023
1 parent c575680 commit 57a8e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2759,7 +2759,7 @@ export class FrozenColumn implements AfterViewInit {
this.el.nativeElement.style.left = left + 'px';
}

let filterRow = this.el.nativeElement.parentElement.nextElementSibling;
const filterRow = this.el.nativeElement?.parentElement?.nextElementSibling;

if (filterRow) {
let index = DomHandler.index(this.el.nativeElement);
Expand Down

0 comments on commit 57a8e03

Please sign in to comment.