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

Empty cycle point - getFamilyTree() TypeError #1922

Open
MetRonnie opened this issue Sep 4, 2024 · 1 comment
Open

Empty cycle point - getFamilyTree() TypeError #1922

MetRonnie opened this issue Sep 4, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@MetRonnie
Copy link
Member

MetRonnie commented Sep 4, 2024

Description

I had a workflow open with the tree view. I uninstalled, reinstalled, and started it.

Uncaught TypeError: Cannot read properties of undefined (reading 'slice')

Location:

for (const ancestor of node.ancestors.slice().reverse()) {

node has no property ancestors.

It caused a cycle point to show up as empty, similar to in #1813

image

@MetRonnie MetRonnie added the bug Something isn't working label Sep 4, 2024
@MetRonnie MetRonnie added this to the 2.x milestone Sep 4, 2024
@oliver-sanders
Copy link
Member

Hmm, does this mean that GraphQL did not return the ancestors field on a task?

Try jamming in some console.logs to find out.

@MetRonnie MetRonnie changed the title getFamilyTree() TypeError Empty cycle point - getFamilyTree() TypeError Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants