small fixes

This commit is contained in:
2019-02-15 14:18:17 +01:00
parent 4bc04bd7e3
commit 4e5aab323e
3 changed files with 7 additions and 11 deletions

View File

@@ -120,12 +120,11 @@ export default {
body,
})
.then((res) => {
this.is_loading = false;
return res.json();}
)
.then((data) => this.template.updateJson(data))
.catch((err) => console.error(err));
this.is_loading = false;
},
unsetMeal: function(mealKey) {
let idx = this.template.findIndexByKey(mealKey);