diff --git a/src/components/ingredients/EditableIngredientsPanel.vue b/src/components/ingredients/EditableIngredientsPanel.vue index 6685001..dfe2a51 100644 --- a/src/components/ingredients/EditableIngredientsPanel.vue +++ b/src/components/ingredients/EditableIngredientsPanel.vue @@ -98,9 +98,7 @@ export default { }, toggleEditing() { this.editing = !this.editing; - if (this.editing && !this.ingredients.length) { - this.$emit('on-add'); - } + this.$emit('on-editing', this.editing); } } } diff --git a/src/components/shopping/MyShoppingPage.vue b/src/components/shopping/MyShoppingPage.vue index e3b50f9..7fcba4d 100644 --- a/src/components/shopping/MyShoppingPage.vue +++ b/src/components/shopping/MyShoppingPage.vue @@ -1,9 +1,7 @@