Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorBoundary: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. #8563

Closed
linear bot opened this issue May 14, 2024 · 2 comments
Assignees

Comments

@linear
Copy link

linear bot commented May 14, 2024

zane test

Copy link

greptile-apps bot commented May 14, 2024

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:

func RemoveErrorIssue(ctx context.Context, id string) error {
    node := findNodeByID(id)
    if node == nil || node.Parent == nil {
        return errors.New("Node to be removed is not a child of any node")
    }
    parent := node.Parent
    parent.RemoveChild(node)
    return nil
}

Ensure findNodeByID correctly identifies the node and its parent.

References

/backend/private-graph/graph/schema.resolvers.go

Ask Greptile

@Vadman97 Vadman97 closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant