diff options
author | 2021-10-15 09:48:06 +0200 | |
---|---|---|
committer | 2021-10-15 09:48:06 +0200 | |
commit | 14d2364fc69e0222133115c55a36286986006098 (patch) | |
tree | 9e9b3c41ef742bbe87ca1632b292c67043051957 /src/containers/settings/RecipesScreen.js | |
parent | 5.6.3-nightly.34 [skip ci] (diff) | |
download | ferdium-app-14d2364fc69e0222133115c55a36286986006098.tar.gz ferdium-app-14d2364fc69e0222133115c55a36286986006098.tar.zst ferdium-app-14d2364fc69e0222133115c55a36286986006098.zip |
chore: update eslint setup (#2074)
Diffstat (limited to 'src/containers/settings/RecipesScreen.js')
-rw-r--r-- | src/containers/settings/RecipesScreen.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/containers/settings/RecipesScreen.js b/src/containers/settings/RecipesScreen.js index 832c2db10..7f55e54c5 100644 --- a/src/containers/settings/RecipesScreen.js +++ b/src/containers/settings/RecipesScreen.js | |||
@@ -130,21 +130,21 @@ class RecipesScreen extends Component { | |||
130 | 130 | ||
131 | const allRecipes = this.state.needle | 131 | const allRecipes = this.state.needle |
132 | ? this.prepareRecipes([ | 132 | ? this.prepareRecipes([ |
133 | // All search recipes from server | 133 | // All search recipes from server |
134 | ...recipePreviews.searchResults, | 134 | ...recipePreviews.searchResults, |
135 | // All search recipes from local recipes | 135 | // All search recipes from local recipes |
136 | ...this.createPreviews( | 136 | ...this.createPreviews( |
137 | this.customRecipes.filter( | 137 | this.customRecipes.filter( |
138 | service => | 138 | service => |
139 | service.name | 139 | service.name |
140 | .toLowerCase() | 140 | .toLowerCase() |
141 | .includes(this.state.needle.toLowerCase()) || | 141 | .includes(this.state.needle.toLowerCase()) || |
142 | (service.aliases || []).some(alias => | 142 | (service.aliases || []).some(alias => |
143 | alias.toLowerCase().includes(this.state.needle.toLowerCase()), | 143 | alias.toLowerCase().includes(this.state.needle.toLowerCase()), |
144 | ), | 144 | ), |
145 | ), | ||
145 | ), | 146 | ), |
146 | ), | 147 | ]).sort(this._sortByName) |
147 | ]).sort(this._sortByName) | ||
148 | : recipeFilter; | 148 | : recipeFilter; |
149 | 149 | ||
150 | const customWebsiteRecipe = recipePreviews.all.find( | 150 | const customWebsiteRecipe = recipePreviews.all.find( |