mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 21:37:49 -05:00
fixed empty step time error
This commit is contained in:
@@ -371,7 +371,8 @@
|
||||
:key="ingredient.id">
|
||||
<hr class="d-md-none"/>
|
||||
<div class="text-center">
|
||||
<small class="text-muted"><i class="fas fa-globe"></i> {{ingredient.original_text}}</small>
|
||||
<small class="text-muted"><i class="fas fa-globe"></i>
|
||||
{{ ingredient.original_text }}</small>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<div class="flex-grow-0 handle align-self-start">
|
||||
@@ -846,6 +847,12 @@ export default {
|
||||
this.recipe.servings = 1
|
||||
}
|
||||
|
||||
this.recipe.steps.forEach(x => {
|
||||
if (x.time === "") {
|
||||
x.time = 0
|
||||
}
|
||||
})
|
||||
|
||||
apiFactory
|
||||
.updateRecipe(this.recipe_id, this.recipe, {})
|
||||
.then((response) => {
|
||||
|
||||
Reference in New Issue
Block a user