Skip to content

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