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