We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dcc9e8 commit 2b43781Copy full SHA for 2b43781
src/components/mixins.js
@@ -17,12 +17,13 @@ function getDragNode (guid) {
17
}
18
19
function hasInGenerations (root, node) {
20
+ let ret = false
21
if (root.hasOwnProperty('children') && root.children) {
22
for (let rn of root.children) {
23
if (rn === node) return true
- if (rn.children) return hasInGenerations(rn, node)
24
+ if (rn.children) ret |= hasInGenerations(rn, node)
25
- return false
26
+ return ret
27
28
29
0 commit comments