@3sc/common-component 0.0.329 → 0.0.331

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/dist/index.es.js CHANGED
@@ -44883,12 +44883,13 @@ const Rw = ({
44883
44883
  showHide: !0,
44884
44884
  children: []
44885
44885
  };
44886
- let I = u.map((A) => (A != null && A.children && A.children.forEach((N) => {
44886
+ let I = u.map((N) => (N != null && N.children && N.children.forEach((D) => {
44887
44887
  M.children.some(
44888
- (L) => L.key === N.key
44889
- ) || M.children.push({ ...N, showInHierarchy: !0 });
44890
- }), A)).filter((A) => (A == null ? void 0 : A.id) !== (M == null ? void 0 : M.id));
44891
- p([...I, M]);
44888
+ (_) => _.key === D.key
44889
+ ) || M.children.push({ ...D, showInHierarchy: !0 });
44890
+ }), N)).filter((N) => (N == null ? void 0 : N.id) !== (M == null ? void 0 : M.id));
44891
+ const A = M.children.length > 0 ? [...I, M] : I;
44892
+ p(A);
44892
44893
  }
44893
44894
  }, [u]);
44894
44895
  const m = async (M) => {