openfun / richie

:pencil: An opensource CMS to build education portals
https://richie.education
MIT License
256 stars 80 forks source link

Dashboard SearchInput - Cannot reset search if the previous search had no results #2398

Closed jbpenrath closed 1 month ago

jbpenrath commented 1 month ago

Bug Report

Problematic Behavior A clear and concise description of the problem you encountered.

Expected behavior/code A clear and concise description of what you expected to happen (or code).

Steps to Reproduce

  1. Go on teacher/learner dashboard
  2. Make a course search which will return no result
  3. The message "You have no enrollment or orders" is displayed
  4. Reset the search
  5. See that no results are still until the RICHIE_PERSISTED_QUERIES key is cleared in SessionStorage

Additional context/Screenshots

Bug dashboard search