jina-ai / dashboard

Interactive UI for analyzing Jina logs, designing Flows and viewing Hub images
https://dashboard.jina.ai
Apache License 2.0
118 stars 60 forks source link

fix(hub): don't display images when no images match the query #278

Closed helaoutar closed 3 years ago

helaoutar commented 3 years ago

This PR solves #274

The issue was that when no images match the search query, the images in redux store weren't removed, which results in the user seeing the previous search result.

The changes introduced by this PR make sure that the images stored in redux are set to an empty array whenever the search fails, and also displays a message saying "No images matching your search were found" to the user.

Screenshot 2021-03-27 at 15 49 28

PR checklist

Docs

Tests

Typing

Styling