From 5e41d66c25660295f84719eaeda1537257e871de Mon Sep 17 00:00:00 2001 From: hay-kot Date: Fri, 7 May 2021 09:28:16 -0800 Subject: [PATCH] remove duplicate code --- frontend/src/store/modules/recipes.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/src/store/modules/recipes.js b/frontend/src/store/modules/recipes.js index 0b098337c..f2270eb94 100644 --- a/frontend/src/store/modules/recipes.js +++ b/frontend/src/store/modules/recipes.js @@ -37,14 +37,12 @@ const mutations = { const actions = { async requestRecentRecipes() { const payload = await api.recipes.allSummary(0, 30); - recipe.sortByUpdated(payload); const hash = Object.fromEntries(payload.map(e => [e.id, e])); this.commit("setRecentRecipes", hash); }, async requestAllRecipes({ getters }) { const all = getters.getAllRecipes; const payload = await api.recipes.allSummary(all.length, 9999); - recipe.sortByUpdated(payload); const hash = Object.fromEntries([...all, ...payload].map(e => [e.id, e])); this.commit("setAllRecipes", hash);