Skip to content

Conversation

@IonesioJunior
Copy link
Member

Summary

Refactored the selection logic in BrowseView component to use a Set of selectedSources instead of individual selection count and isSelected function, improving efficiency and clarity.

Changes

  • Replaced isSelected and count from the selection store with selectedSources Set
  • Updated selection check to use selectedSources.has(endpoint.id)
  • Adjusted UI logic to check selectedSources.size for displaying the spacer

Notes

This change simplifies the selection state management and reduces redundant code.

@IonesioJunior IonesioJunior merged commit 25c1281 into main Feb 4, 2026
10 checks passed
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.

1 participant