akashnimare/git-issues

Misleading error message when searching for repos with no issues

Closed this issue · 2 comments

If no issues are found when searching for a repository the search returns

No open issue found for user/repo

However, if you then change the user or repo you are searching for, the error message automatically updates with the new user or repo you are searching for, which makes it seem as if your new query has no issues either. This is fixed after clicking the search button.


Steps to reproduce:

  1. Open https://akashnimare.github.io/git-issues.


  2. Search for null/null. This will return the error message as above.


  3. Type sindresorhus/ama. For as long as you don't hit search, the error message that was generated for the last search has updated and now makes it seem that sindresorhus/ama has no issues, although this is not true.


  4. Hit search. The issues from sindresorhus/ama will populate.


@rbstrachan yeah, I can reproduce this. I'll look into it (I was quite away from this project but now back and ready to refactor 🚀 )