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 issue #255 #260

Closed
wants to merge 2 commits into from
Closed

fix issue #255 #260

wants to merge 2 commits into from

Conversation

roi1410
Copy link
Contributor

@roi1410 roi1410 commented Apr 25, 2024

change sortOptionsMapper's keys to the match sortOption's index
filterBar.tsx row 37
const sortOptionsMapper: Record<number, ProjectPaginationFilter> = { 0: ProjectPaginationFilter.ALL, 3: ProjectPaginationFilter.RECENTLY_UPDATED, 1: ProjectPaginationFilter.MOST_CONTROBUTORS, 2: ProjectPaginationFilter.RECENTLY_CREATED, };
i used sortOptions indexes to call the right sortOptionsMapper OBJ row 54

const handleCategoryOptionSelection = ( event: ChangeEvent<HTMLInputElement> ) => { sortOptions.forEach((option, index) => { if (option === event.target.value) { setFetchByCategory(sortOptionsMapper[index]); setSelectedSortOption(option); } }); };

solution #255

Copy link

vercel bot commented Apr 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
maakaf-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 0:57am

@roi1410 roi1410 changed the title change sortOptionsMapper's keys to the mach sortOption's index fix issue #255 Apr 25, 2024
@roi1410 roi1410 requested a review from Tamir198 April 26, 2024 13:23
@roi1410 roi1410 closed this by deleting the head repository May 16, 2024
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.

2 participants