Skip to content

[BUG] Cannot set properties of undefined (setting 'color') #6

Description

@JoieStark

Hi, I have test the code and find a bug, it probably in the file index.html lin 97

cy.elements().remove(); // Assign colors to nodes and edges data.nodes.forEach(node => { node.data.color = colors[colorIndex % colors.length]; colorIndex++; });

the log show that

TypeError: Cannot set properties of undefined (setting 'color')
at (index):97:41
at Array.forEach ()
at (index):96:32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions