Working with Phases Aligned
This commit is contained in:
1 parent
468ef8d0c6
commit
eca3a41764
3 files changed
+60
-29
No files matched your search
@@ -290,9 +290,14 @@ function newNodeChildren () {
|
||||
}
|
||||
for (let i = 0; i < parentNode.phases.length; i++) {
|
||||
let child = parentNode.phases[i]
|
||||
response.childrenCount++
|
||||
|
||||
if (child.id === childNode.id) {
|
||||
response.childIndex = response.childrenCount
|
||||
if (childNode.payload.chainParent !== undefined) {
|
||||
if (childNode.payload.chainParent.id === parentNode.id) {
|
||||
response.childrenCount++
|
||||
response.childIndex = response.childrenCount
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return response
|
||||
@@ -305,9 +310,14 @@ function newNodeChildren () {
|
||||
}
|
||||
for (let i = 0; i < parentNode.phases.length; i++) {
|
||||
let child = parentNode.phases[i]
|
||||
response.childrenCount++
|
||||
|
||||
if (child.id === childNode.id) {
|
||||
response.childIndex = response.childrenCount
|
||||
if (childNode.payload.chainParent !== undefined) {
|
||||
if (childNode.payload.chainParent.id === parentNode.id) {
|
||||
response.childrenCount++
|
||||
response.childIndex = response.childrenCount
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return response
|
||||
@@ -378,3 +388,4 @@ function newNodeChildren () {
|
||||
return response
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user