PriyaGhosal / SkillWise

This Repository is now officially part of Hacktoberfest 2024 !!!
https://skillwise.netlify.app/
Other
130 stars 380 forks source link

Search bar filters content but appends duplicate results on second search click #566

Open sanchitgumber opened 1 week ago

sanchitgumber commented 1 week ago

Description: When using the search bar to search for a specific word, the search successfully filters topics/content on the first click of the search button. However, if you click the search button again without changing the search query, the same results are appended to the filtered list instead of clearing the old list and fetching fresh results.

Steps to reproduce:

Enter a word in the search bar. Click the search button. Observe that the results are filtered correctly. Click the search button again without changing the search query. The same results are appended to the filtered list rather than refreshing the results.

Expected behavior: On subsequent clicks of the search button, the old filtered results should be cleared, and only fresh results should be shown.

Actual behavior: The previous results are not cleared, duplicate results are appended to the filtered list.

Screenshot 2024-10-17 at 5 58 00 PM Screenshot 2024-10-17 at 5 57 42 PM
github-actions[bot] commented 1 week ago

Thanks for creating the issue in SkillWise! Before you start working on your PR, please make sure to:

github-actions[bot] commented 1 week ago

Thank you for creating this issue! 🎉 Your issue will soon be reviewed by Project Maintainers. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project.

mokshith-moksh commented 1 week ago

can you assign this issue to me

codebysid commented 1 week ago

I'll start with the issue, assign it to me @PriyaGhosal

Sanchay22 commented 1 week ago

/assign