mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
fix(graph): avoid repeatedly child of the same parent
This commit is contained in:
parent
c078bd8022
commit
21ed76f9e0
1 changed files with 1 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ local function assert_stable_scope(): Node<unknown>
|
|||
end
|
||||
|
||||
local function push_child<T>(parent: SourceNode<any>, child: Node<any>)
|
||||
if table.find(child.parents, parent) then return end
|
||||
table.insert(parent, child)
|
||||
table.insert(child.parents, parent)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue