dlsjs 0.1.19 → 0.1.21

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/dlsjs.esm.js CHANGED
@@ -4337,7 +4337,7 @@ function dim2Tree(e, D, O) {
4337
4337
  let k = [];
4338
4338
  if (D.length) for (let e of D) {
4339
4339
  if (!e) continue;
4340
- let D = O.find((D) => D.propName === e);
4340
+ let D = O[e];
4341
4341
  k.push(D);
4342
4342
  }
4343
4343
  let A = [];
@@ -4355,8 +4355,8 @@ function dim2Tree(e, D, O) {
4355
4355
  function treeFilter(e, D) {
4356
4356
  let O = tree2List(e);
4357
4357
  setParentIds4List(O);
4358
- let k = O.filter(D).map((e) => e._parentIds).flat();
4359
- return list2Tree(O.filter((e) => k.includes(e.id)));
4358
+ let k = O.filter(D), A = k.map((e) => e._parentIds).flat(), j = k.map((e) => e.id);
4359
+ return list2Tree(O.filter((e) => A.includes(e.id) || j.includes(e.id)));
4360
4360
  }
4361
4361
  function tree2List(e, D = []) {
4362
4362
  let O = [];