Skip to content

"Disperse nodes" is not working for some schemesΒ #102

@theKashey

Description

@theKashey

πŸ‘‹ Thanks for the great tool.

I've tried to visualize a medium-sized schema and "disperse nodes" function failed with Cannot read properties of undefined (reading 'length') here -

acc[0] < curr.name.length ? curr.name.length : acc[0],

Incoming data shape -
image

If I update letters[i]! to something like letters[i] || "" it solves the problem and everything works great

name: letters[i]!,

Not sure if that's the right way to address this issue.

Anyways, I've corrected it in my local version and am not blocked. Feel free to handle this issue when and as you prefer.

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