mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
convert servings to number on import
This commit is contained in:
@@ -942,7 +942,7 @@
|
||||
this.recipe_json.keywords.push(new_keyword)
|
||||
break;
|
||||
case 'servings':
|
||||
this.recipe_json.servings=v
|
||||
this.recipe_json.servings=parseInt(v.match(/\b\d+\b/)[0])
|
||||
break;
|
||||
case 'prepTime':
|
||||
this.recipe_json.prepTime=v
|
||||
|
||||
Reference in New Issue
Block a user