This commit is contained in:
smilerz 2022-02-16 14:18:23 -06:00
parent 57dec86b06
commit 5f3d5afc37
No known key found for this signature in database
GPG Key ID: 39444C7606D47126

View File

@ -969,7 +969,7 @@ export default {
appendIngredients: function () {
let ing_list = this.paste_ingredients.split(/\r?\n/)
let step = this.recipe.steps.findIndex((x) => x.id == this.paste_step)
let order = Math.max(...(this.recipe.steps[step].ingredients.map((x) => x.order), 0)) + 1
let order = Math.max(...this.recipe.steps[step].ingredients.map((x) => x.order), 0) + 1
this.recipe.steps[step].ingredients_visible = true
ing_list.forEach((ing) => {
if (ing.trim() !== "") {