Skip to content

Commit

Permalink
Fixed #15178 - Use ObjectUtils for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Mar 27, 2024
1 parent 4bfea95 commit b146837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/treetable/treetable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b146837

Please sign in to comment.