Skip to content

Conversation

@josihoppe
Copy link

It looks like first time connections did not get the correct color, because drawflow gives new nodes an extra wrap of a "data" array around data, which made the lookup bus.data.bustype result to null.

I added a little helper function, that just checks different ways that bustype could be stored.

@josihoppe josihoppe linked an issue Dec 10, 2025 that may be closed by this pull request
Copy link

@paulapreuss paulapreuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! I tested it and it seems to be working well now. Thanks for getting to the bottom of this 💪

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

Successfully merging this pull request may close these issues.

Connections do not get automatically colored for new components

3 participants