From e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b Mon Sep 17 00:00:00 2001
From: Vijay A <vraravam@users.noreply.github.com>
Date: Wed, 24 May 2023 06:57:50 +0530
Subject: Upgrade npm modules

---
 src/containers/settings/RecipesScreen.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/containers/settings/RecipesScreen.tsx')

diff --git a/src/containers/settings/RecipesScreen.tsx b/src/containers/settings/RecipesScreen.tsx
index abbb79b39..1fb2673a8 100644
--- a/src/containers/settings/RecipesScreen.tsx
+++ b/src/containers/settings/RecipesScreen.tsx
@@ -129,8 +129,9 @@ class RecipesScreen extends Component<IProps, IState> {
 
     const { needle } = this.state;
     const allRecipes =
-      needle !== null
-        ? this.prepareRecipes([
+      needle === null
+        ? recipeFilter
+        : this.prepareRecipes([
             // All search recipes from server
             ...recipePreviews.searchResults,
             // All search recipes from local recipes
@@ -143,8 +144,7 @@ class RecipesScreen extends Component<IProps, IState> {
                   ),
               ),
             ),
-          ]).sort(this._sortByName)
-        : recipeFilter;
+          ]).sort(this._sortByName);
 
     const customWebsiteRecipe = recipePreviews.all.find(
       service => service.id === CUSTOM_WEBSITE_RECIPE_ID,
-- 
cgit v1.2.3-70-g09d2

