diff options
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/EditServiceScreen.tsx | 6 | ||||
-rw-r--r-- | src/containers/settings/RecipesScreen.tsx | 8 | ||||
-rw-r--r-- | src/containers/settings/ServicesScreen.tsx | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/containers/settings/EditServiceScreen.tsx b/src/containers/settings/EditServiceScreen.tsx index d4186560f..0a079c608 100644 --- a/src/containers/settings/EditServiceScreen.tsx +++ b/src/containers/settings/EditServiceScreen.tsx | |||
@@ -175,9 +175,9 @@ class EditServiceScreen extends Component<IProps> { | |||
175 | { default: defaultSpellcheckerLanguage }, | 175 | { default: defaultSpellcheckerLanguage }, |
176 | ), | 176 | ), |
177 | automaticDetectionText: | 177 | automaticDetectionText: |
178 | stores.settings.app.spellcheckerLanguage !== 'automatic' | 178 | stores.settings.app.spellcheckerLanguage === 'automatic' |
179 | ? intl.formatMessage(globalMessages.spellcheckerAutomaticDetection) | 179 | ? '' |
180 | : '', | 180 | : intl.formatMessage(globalMessages.spellcheckerAutomaticDetection), |
181 | }); | 181 | }); |
182 | 182 | ||
183 | const config: FormFields = { | 183 | const config: FormFields = { |
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> { | |||
129 | 129 | ||
130 | const { needle } = this.state; | 130 | const { needle } = this.state; |
131 | const allRecipes = | 131 | const allRecipes = |
132 | needle !== null | 132 | needle === null |
133 | ? this.prepareRecipes([ | 133 | ? recipeFilter |
134 | : this.prepareRecipes([ | ||
134 | // All search recipes from server | 135 | // All search recipes from server |
135 | ...recipePreviews.searchResults, | 136 | ...recipePreviews.searchResults, |
136 | // All search recipes from local recipes | 137 | // All search recipes from local recipes |
@@ -143,8 +144,7 @@ class RecipesScreen extends Component<IProps, IState> { | |||
143 | ), | 144 | ), |
144 | ), | 145 | ), |
145 | ), | 146 | ), |
146 | ]).sort(this._sortByName) | 147 | ]).sort(this._sortByName); |
147 | : recipeFilter; | ||
148 | 148 | ||
149 | const customWebsiteRecipe = recipePreviews.all.find( | 149 | const customWebsiteRecipe = recipePreviews.all.find( |
150 | service => service.id === CUSTOM_WEBSITE_RECIPE_ID, | 150 | service => service.id === CUSTOM_WEBSITE_RECIPE_ID, |
diff --git a/src/containers/settings/ServicesScreen.tsx b/src/containers/settings/ServicesScreen.tsx index 780b7331e..70eeffed4 100644 --- a/src/containers/settings/ServicesScreen.tsx +++ b/src/containers/settings/ServicesScreen.tsx | |||
@@ -33,7 +33,7 @@ class ServicesScreen extends Component<IProps> { | |||
33 | } = this.props.actions.service; | 33 | } = this.props.actions.service; |
34 | const isLoading = services.allServicesRequest.isExecuting; | 34 | const isLoading = services.allServicesRequest.isExecuting; |
35 | const allServices = | 35 | const allServices = |
36 | services.filterNeedle !== null ? services.filtered : services.all; | 36 | services.filterNeedle === null ? services.all : services.filtered; |
37 | 37 | ||
38 | return ( | 38 | return ( |
39 | <ErrorBoundary> | 39 | <ErrorBoundary> |