fixed empty step time error

This commit is contained in:
vabene1111
2022-04-29 21:57:05 +02:00
parent 3cef470134
commit 4f33101319

View File

@@ -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) => {