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

Prevent empty category nodes from being dragged into the workflow #1760

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

glopesdev
Copy link
Member

The current check for deciding whether a toolbox node can be dragged into the workflow was based on testing for number of children, i.e. operator nodes are always leaf nodes either in hierarchical or search mode.

However, category nodes can also be leaf nodes if there are no operators of that category. This can easily happen for the Workflow and Subject categories. An additional restriction to prevent this is to check whether the node actually has a non-null content Tag.

Fixes #1759

@glopesdev glopesdev added the fix Pull request that fixes an issue label Apr 26, 2024
@glopesdev glopesdev added this to the 2.8.3 milestone Apr 26, 2024
Copy link
Member

@PathogenDavid PathogenDavid left a comment

Choose a reason for hiding this comment

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

Figured it was probably something like that 😁

@glopesdev glopesdev merged commit d3317bb into bonsai-rx:main Apr 27, 2024
3 checks passed
@glopesdev glopesdev deleted the issue-1759 branch April 27, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
2 participants