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

BasicViewerState removeSources has a typo which messes up SourceGroups #177

Closed
NicoKiaru opened this issue May 18, 2024 · 2 comments
Closed

Comments

@NicoKiaru
Copy link
Contributor

If a Source is present in a SourceGroup, calling state.removeSources will remove the sources from the viewer and the 'main' panel works, but it stays in the SourceGroup.

Also, when removeSources is called, all sources from all SourceGroup are removed (and it does not care about the argument of removeAll method).

I think this is due to a typo here:

sourceToGroupAssignmentChanged |= groupData.sources.removeAll( sources );

It's rather:

sourceToGroupAssignmentChanged |= groupData.sources.removeAll( collection );

This would solve

bigdataviewer/bigdataviewer-playground#272

and maybe ?
#146

I'll make a quick PR

@NicoKiaru
Copy link
Contributor Author

Here's the PR: #178

I think I did a small mistake in the PR since there's an extra commit from Tobias. I don't know ow it came in the PR

@NicoKiaru
Copy link
Contributor Author

PR #178 merged, so let's close this issue.

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

No branches or pull requests

1 participant