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) {