diff --git a/cookbook/admin.py b/cookbook/admin.py
index 0a03093d..e53a27a8 100644
--- a/cookbook/admin.py
+++ b/cookbook/admin.py
@@ -257,7 +257,7 @@ admin.site.register(ViewLog, ViewLogAdmin)
class InviteLinkAdmin(admin.ModelAdmin):
list_display = (
- 'group', 'valid_until','space',
+ 'group', 'valid_until', 'space',
'created_by', 'created_at', 'used_by'
)
diff --git a/vue/src/apps/RecipeEditView/RecipeEditView.vue b/vue/src/apps/RecipeEditView/RecipeEditView.vue
index 61cad5e0..9b38fd1c 100644
--- a/vue/src/apps/RecipeEditView/RecipeEditView.vue
+++ b/vue/src/apps/RecipeEditView/RecipeEditView.vue
@@ -49,13 +49,13 @@
-
+
-
+
-
+
@@ -343,7 +343,7 @@
-
@@ -623,9 +623,10 @@ export default {
this.sortIngredients(s)
}
- if (this.recipe.waiting_time === ''){ this.recipe.waiting_time = 0}
- if (this.recipe.working_time === ''){ this.recipe.working_time = 0}
- if (this.recipe.servings === ''){ this.recipe.servings = 0}
+ if (this.recipe.waiting_time === '' || isNaN(this.recipe.waiting_time)){ this.recipe.waiting_time = 0}
+ if (this.recipe.working_time === ''|| isNaN(this.recipe.working_time)){ this.recipe.working_time = 0}
+ if (this.recipe.servings === ''|| isNaN(this.recipe.servings)){ this.recipe.servings = 0}
+
apiFactory.updateRecipe(this.recipe_id, this.recipe,
{}).then((response) => {