dlsjs 0.1.17 → 0.1.19
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/package.json +1 -1
- package/src/core/ES/Tree.js +1 -1
package/package.json
CHANGED
package/src/core/ES/Tree.js
CHANGED
|
@@ -204,7 +204,7 @@ export function treeFilter(treeLike, func) {
|
|
|
204
204
|
const res = list.filter(func)
|
|
205
205
|
const resParentIds = res.map(item => item._parentIds).flat()
|
|
206
206
|
const res2 = list.filter(item => resParentIds.includes(item.id))
|
|
207
|
-
return list2Tree(res2)
|
|
207
|
+
return list2Tree([res, res2])
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
/**
|