Update NodeChildren.js

This commit is contained in:
Luis Fernando Molina committed 2019-10-18 17:25:40 +02:00
1 parent 238e01d8ba
commit 1528e52fb1
1 file changed
+31
@@ -397,6 +397,12 @@ function newNodeChildren () {
response.childIndex = response.childrenCount
}
}
if (parentNode.socialBots !== undefined) {
response.childrenCount++
if (parentNode.socialBots.id === childNode.id) {
response.childIndex = response.childrenCount
}
}
return response
}
@@ -417,6 +423,12 @@ function newNodeChildren () {
response.childIndex = response.childrenCount
}
}
if (parentNode.socialBots !== undefined) {
response.childrenCount++
if (parentNode.socialBots.id === childNode.id) {
response.childIndex = response.childrenCount
}
}
return response
}
@@ -437,6 +449,12 @@ function newNodeChildren () {
response.childIndex = response.childrenCount
}
}
if (parentNode.socialBots !== undefined) {
response.childrenCount++
if (parentNode.socialBots.id === childNode.id) {
response.childIndex = response.childrenCount
}
}
return response
}
@@ -457,6 +475,12 @@ function newNodeChildren () {
response.childIndex = response.childrenCount
}
}
if (parentNode.socialBots !== undefined) {
response.childrenCount++
if (parentNode.socialBots.id === childNode.id) {
response.childIndex = response.childrenCount
}
}
return response
}
@@ -823,6 +847,13 @@ function newNodeChildren () {
response.childIndex = response.childrenCount
}
}
for (let i = 0; i < parentNode.announcements.length; i++) {
let child = parentNode.announcements[i]
response.childrenCount++
if (child.id === childNode.id) {
response.childIndex = response.childrenCount
}
}
return response
}