You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To resolve the issue 'Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node', check the RemoveErrorIssue method in backend/private-graph/graph/schema.resolvers.go. Ensure that the node being removed is correctly identified as a child node before attempting removal. Example:
funcRemoveErrorIssue(ctx context.Context, idstring) error {
node:=findNodeByID(id)
ifnode==nil||node.Parent==nil {
returnerrors.New("Node to be removed is not a child of any node")
}
parent:=node.Parentparent.RemoveChild(node)
returnnil
}
Ensure findNodeByID correctly identifies the node and its parent.
zane test
The text was updated successfully, but these errors were encountered: