mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 21:58:54 -05:00
Merge pull request #1539 from smilerz/auto_add_shopping_fix
fix duplicate shopping recipes when auto-add enabled
This commit is contained in:
@@ -207,8 +207,7 @@ export default {
|
|||||||
if (!cancel) {
|
if (!cancel) {
|
||||||
console.log("saving", { ...this.mealplan_settings, ...this.entryEditing })
|
console.log("saving", { ...this.mealplan_settings, ...this.entryEditing })
|
||||||
this.$bvModal.hide(`edit-modal`)
|
this.$bvModal.hide(`edit-modal`)
|
||||||
this.$emit("save-entry", { ...this.mealplan_settings, ...this.entryEditing })
|
this.$emit("save-entry", { ...this.mealplan_settings, ...this.entryEditing, ...{ addshopping: this.entryEditing.addshopping && !this.autoMealPlan } })
|
||||||
console.log("after emit", { ...this.mealplan_settings, ...this.entryEditing }.addshopping)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deleteEntry() {
|
deleteEntry() {
|
||||||
|
|||||||
Reference in New Issue
Block a user