Empty search item shouldn't be added to recent searches list
When searching without any filters, recent searches list shows empty search item on pages like issues, merge requests etc
Steps to reproduce
- Go to issues or merge requests page
- Search without any filter (click search icon or click on search input and click enter)
- Open the recent searches dropdown
- Notice the empty search item
Expected Behaviour
Empty search item probably shouldn't be added to recent searches list.
Edited by 🤖 GitLab Bot 🤖