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

Fix: Sort By not working properly (#716) #735

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MrBlackGhostt
Copy link

@MrBlackGhostt MrBlackGhostt commented Feb 17, 2025

PR Fixes:

Resolves #[716]

##Change Made

The issue occurred because some tracks had t.cohort === 0, which caused them to be excluded when selecting either cohort 2 or 3.
I updated the condition so that when "All" is selected in Sort, selectedCohort becomes null.
This ensures the condition evaluates to true for all cohorts when sorting by "All".

Screen.Recording.2025-02-17.at.11.09.50.PM.mov
Screen.Recording.2025-02-17.at.11.11.06.PM.mov

All Track have t.cohort = 0 that's why on selecting the cohort nothing shows

Checklist before requesting a review

  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue

@MrBlackGhostt
Copy link
Author

Edit the filterTracks Fun in Tracks.tsx

@MrBlackGhostt
Copy link
Author

@devsargam can you review the pr

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