From b555b01f94e9dc6156260df7c39a42ccde965a3f Mon Sep 17 00:00:00 2001 From: marcmojave Date: Thu, 4 Jan 2024 15:40:43 +0000 Subject: [PATCH] fix safe code for _rowDiffer --- .../ngx-datatable/src/lib/components/body/body-row.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/swimlane/ngx-datatable/src/lib/components/body/body-row.component.ts b/projects/swimlane/ngx-datatable/src/lib/components/body/body-row.component.ts index 7d70860cf..dbaa07510 100644 --- a/projects/swimlane/ngx-datatable/src/lib/components/body/body-row.component.ts +++ b/projects/swimlane/ngx-datatable/src/lib/components/body/body-row.component.ts @@ -160,7 +160,7 @@ export class DataTableBodyRowComponent implements DoCheck { } ngDoCheck(): void { - if (this._rowDiffer.diff(this.row)) { + if (this._rowDiffer && this._rowDiffer.diff(this.row)) { this.cd.markForCheck(); } }