From 1d171f4a65bf317fdd9aa3123e5fa57e87c7fe4c Mon Sep 17 00:00:00 2001 From: vantezzen Date: Thu, 26 Sep 2019 11:55:53 +0200 Subject: Fix lint --- src/containers/settings/RecipesScreen.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/containers') diff --git a/src/containers/settings/RecipesScreen.js b/src/containers/settings/RecipesScreen.js index 813c008f1..cff6bfd83 100644 --- a/src/containers/settings/RecipesScreen.js +++ b/src/containers/settings/RecipesScreen.js @@ -16,7 +16,7 @@ import { FRANZ_DEV_DOCS } from '../../config'; import { communityRecipesStore } from '../../features/communityRecipes'; import RecipePreview from '../../models/RecipePreview'; -import allFerdiRecipes from '../../../recipes/all.json' +import allFerdiRecipes from '../../../recipes/all.json'; const { app } = remote; @@ -74,16 +74,16 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend prepareRecipes(recipes) { return recipes // Filter out duplicate recipes - .filter((recipe, index, self) => { - const ids = self.map(rec => rec.id); - return ids.indexOf(recipe.id) === index; - - // Sort alphabetically - }).sort((a, b) => { - if(a.id < b.id) { return -1; } - if(a.id > b.id) { return 1; } - return 0; - }); + .filter((recipe, index, self) => { + const ids = self.map(rec => rec.id); + return ids.indexOf(recipe.id) === index; + + // Sort alphabetically + }).sort((a, b) => { + if (a.id < b.id) { return -1; } + if (a.id > b.id) { return 1; } + return 0; + }); } // Create an array of RecipePreviews from an array of recipe objects @@ -114,8 +114,8 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend if (filter === 'all') { recipeFilter = this.prepareRecipes([ ...recipePreviews.all, - ...this.createPreviews(allFerdiRecipes) - ]) + ...this.createPreviews(allFerdiRecipes), + ]); } else if (filter === 'dev') { recipeFilter = communityRecipesStore.communityRecipes; } else { @@ -127,9 +127,9 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend ...recipePreviews.searchResults, // All search recipes from local recipes ...this.createPreviews( - allFerdiRecipes - .filter(service => service.name.toLowerCase().includes(this.state.needle.toLowerCase())) - ) + allFerdiRecipes + .filter(service => service.name.toLowerCase().includes(this.state.needle.toLowerCase())), + ), ]) : recipeFilter; const isLoading = recipePreviews.featuredRecipePreviewsRequest.isExecuting -- cgit v1.2.3-70-g09d2