mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
remove console.log
This commit is contained in:
parent
71f875e5f3
commit
3b02553aa2
1 changed files with 0 additions and 2 deletions
|
@ -36,7 +36,6 @@ const actions = {
|
||||||
async requestRecentRecipes() {
|
async requestRecentRecipes() {
|
||||||
const payload = await api.recipes.allSummary(0, 30);
|
const payload = await api.recipes.allSummary(0, 30);
|
||||||
payload.sort((a, b) => (a.dateAdded > b.dateAdded ? -1 : 1));
|
payload.sort((a, b) => (a.dateAdded > b.dateAdded ? -1 : 1));
|
||||||
console.log(payload);
|
|
||||||
const hash = Object.fromEntries(payload.map(e => [e.id, e]));
|
const hash = Object.fromEntries(payload.map(e => [e.id, e]));
|
||||||
this.commit("setRecentRecipes", hash);
|
this.commit("setRecentRecipes", hash);
|
||||||
},
|
},
|
||||||
|
@ -44,7 +43,6 @@ const actions = {
|
||||||
const all = getters.getAllRecipes;
|
const all = getters.getAllRecipes;
|
||||||
const payload = await api.recipes.allSummary(all.length, 9999);
|
const payload = await api.recipes.allSummary(all.length, 9999);
|
||||||
const hash = Object.fromEntries([...all, ...payload].map(e => [e.id, e]));
|
const hash = Object.fromEntries([...all, ...payload].map(e => [e.id, e]));
|
||||||
console.log(hash);
|
|
||||||
|
|
||||||
this.commit("setAllRecipes", hash);
|
this.commit("setAllRecipes", hash);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue