Commit bb1a700b authored by Merzough Münker's avatar Merzough Münker
Browse files

fix: ensure deep equal is used only if required

parent 9491e424
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -380,7 +380,10 @@ export class TreeTableDataSource<RowData extends WithIdentifier & WithChildren,
        if (a.length !== b.length) {
          return false;
        }
        return equals(a.map(item => item.__node.id), b.map(item => item.__node.id));
        if (!equals(a.map(item => item.__node.id), b.map(item => item.__node.id))) {
          return false;
        }
        return equals(a.map(item => item.__node.item).map(item => ({ ...item, children: null })), b.map(item => item.__node.item).map(item => ({ ...item, children: null })));
      }),
      switchMap((data) => {
        return combineLatest([