Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addIngredient($event) {
- const payload = {
- ...this.recipe_ingredient,
- quantity: +this.recipe_ingredient.quantity,
- recipe_id: this.recipe.id
- };
- this.$store.dispatch('recipes/insertRecipeIngredient', payload);
- this.recipe_ingredient = {
- ingredient_id: '',
- quantity: 0,
- comments: ''
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement