From 0f4f824bb2ff7c7601d10fbd9cd5f188c6a910ba Mon Sep 17 00:00:00 2001 From: Benj Fassbind Date: Fri, 18 Oct 2024 10:43:28 +0200 Subject: [PATCH] When searching set show favourites to false This allows to go back to the favouritse from the search results --- web/src/components/SearchBar.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/components/SearchBar.tsx b/web/src/components/SearchBar.tsx index 8c5c8f74..467a67a0 100644 --- a/web/src/components/SearchBar.tsx +++ b/web/src/components/SearchBar.tsx @@ -49,6 +49,7 @@ export default function SearchBar(props: Props): JSX.Element { } const onSearch = (e: React.ChangeEvent): void => { + setShowFavourites(false) updateSearch(e.target.value) }