chore(core): cleanup

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-03-22 20:09:05 +01:00
committed by Braks
parent 2f87aa8578
commit 0fb4713c0b
3 changed files with 31 additions and 29 deletions
+2 -2
View File
@@ -76,9 +76,9 @@ export function createGraphNodes(nodes: Node[], findNode: Actions['findNode'], c
return parsed
})
graphNodes.forEach((node) => {
const nextNodes = [...graphNodes, ...currGraphNodes]
const nextNodes = [...graphNodes, ...currGraphNodes]
graphNodes.forEach((node) => {
const parentNode = nextNodes.find((n) => n.id === node.parentNode)
if (node.parentNode && !parentNode) {