Orcasa-Platform / orcasa-review4c

https://orcasa-review4c.vercel.app/
MIT License
0 stars 0 forks source link

Reset active filters on back button from publicaitons #110

Closed Bluesmile82 closed 3 weeks ago

Bluesmile82 commented 3 weeks ago

Publication filter count on badge was not reseting after going back to home page

https://vizzuality.atlassian.net/browse/ORC-716

vercel[bot] commented 3 weeks ago

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

Name Status Preview Comments Updated (UTC)
orcasa-review4c ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2024 10:57am
clementprdhomme commented 3 weeks ago

Thanks @Bluesmile82. If you read this comment, you'll also see that there is another case that you can reproduce on demo:

  1. Click on Publications
  2. Filter by 1910
  3. Filter by a land use type

This year, 1910, probably does not exist for the new land use type. I think we should probably reset it when the land use type is changed.

In the comment, I also said that the same problem can occur with the journal and country filter. Would that be possible to reset all 3?

Bluesmile82 commented 3 weeks ago

@clementprdhomme I reset all the rest of filters for consistency