From b146837e9ba8c39203cf39855a3d40085e8f9296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 27 Mar 2024 18:29:18 +0300 Subject: [PATCH] Fixed #15178 - Use ObjectUtils for comparison --- src/app/components/treetable/treetable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/treetable/treetable.ts b/src/app/components/treetable/treetable.ts index 50f7049dbd3..b1aedf171f5 100755 --- a/src/app/components/treetable/treetable.ts +++ b/src/app/components/treetable/treetable.ts @@ -1849,7 +1849,7 @@ export class TreeTable implements AfterContentInit, OnInit, OnDestroy, Blockable } equals(node1: TreeTableNode, node2: TreeTableNode) { - return this.compareSelectionBy === 'equals' ? node1 === node2 : ObjectUtils.equals(node1.data, node2.data, this.dataKey); + return this.compareSelectionBy === 'equals' ? ObjectUtils.equals(node1, node2) : ObjectUtils.equals(node1.data, node2.data, this.dataKey); } filter(value: string | string[], field: string, matchMode: string) {