@arsedizioni/ars-utils 19.4.71 → 19.4.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/system.d.ts CHANGED
@@ -4,6 +4,7 @@ export interface INode {
4
4
  name?: string;
5
5
  count?: number;
6
6
  children?: INode[];
7
+ subFolders?: INode[];
7
8
  parent?: INode;
8
9
  bag?: any;
9
10
  }
@@ -708,10 +708,10 @@ class SystemUtils {
708
708
  children: undefined,
709
709
  bag: n,
710
710
  };
711
- node.children =
712
- n.children && n.children.length > 0
713
- ? this._toNodes(n.children, node)
714
- : [];
711
+ const children = n.children ?? n.subFolders ?? [];
712
+ if (children.length > 0) {
713
+ node.children = this._toNodes(n.children ?? n.subFolders, node);
714
+ }
715
715
  nodes.push(node);
716
716
  });
717
717
  return nodes;