diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 6e47fd955e5..c8ba4bfa6d5 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -4073,8 +4073,8 @@ export class EditableColumn implements OnChanges, AfterViewInit, OnDestroy { constructor(public dt: Table, public el: ElementRef, public zone: NgZone) {} - public ngOnChanges({ data }: SimpleChanges): void { - if (this.el.nativeElement && !data.firstChange) { + public ngOnChanges(changes: SimpleChanges): void { + if (this.el.nativeElement && (!changes.data?.firstChange)) { this.dt.updateEditingCell(this.el.nativeElement, this.data, this.field, this.rowIndex); } }