@ukpc-lib/react 0.3.40 → 0.3.42

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.
@@ -10734,7 +10734,10 @@ function Kf(e, t) {
10734
10734
  return console.log("parents:", a), a;
10735
10735
  }
10736
10736
  function Yf(e, t) {
10737
- return e.map((n) => (n.path && (n.path = t(n.path)), n.children && n.children.length > 0 && (n.children = Yf(n.children, t)), n));
10737
+ return e.map((n) => {
10738
+ var r;
10739
+ return (r = n.children) != null && r.length ? (n.path = "", n.children = Yf(n.children, t)) : n.path = t(n.path), n;
10740
+ });
10738
10741
  }
10739
10742
  function Jf(e) {
10740
10743
  return e.map((n) => n.path && !n.path.includes("http") && n.path.includes("/") ? {