From fae21e7e3cb333bb907fadf129b9ca49968e2720 Mon Sep 17 00:00:00 2001 From: Prateek Saxena Date: Wed, 22 May 2024 19:06:28 +0530 Subject: [PATCH] Fix #15657 reading properties undefined Editable --- src/app/components/table/table.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }