fix duplicate shopping recipes when auto-add enabled

This commit is contained in:
smilerz
2022-02-14 17:47:17 -06:00
parent 3db55cd82b
commit 57658e76f5
2 changed files with 2 additions and 2 deletions

View File

@ -207,8 +207,7 @@ export default {
if (!cancel) {
console.log("saving", { ...this.mealplan_settings, ...this.entryEditing })
this.$bvModal.hide(`edit-modal`)
this.$emit("save-entry", { ...this.mealplan_settings, ...this.entryEditing })
console.log("after emit", { ...this.mealplan_settings, ...this.entryEditing }.addshopping)
this.$emit("save-entry", { ...this.mealplan_settings, ...this.entryEditing, ...{ addshopping: this.entryEditing.addshopping && !this.autoMealPlan } })
}
},
deleteEntry() {