convert servings to number on import
This commit is contained in:
@ -942,7 +942,7 @@
|
|||||||
this.recipe_json.keywords.push(new_keyword)
|
this.recipe_json.keywords.push(new_keyword)
|
||||||
break;
|
break;
|
||||||
case 'servings':
|
case 'servings':
|
||||||
this.recipe_json.servings=v
|
this.recipe_json.servings=parseInt(v.match(/\b\d+\b/)[0])
|
||||||
break;
|
break;
|
||||||
case 'prepTime':
|
case 'prepTime':
|
||||||
this.recipe_json.prepTime=v
|
this.recipe_json.prepTime=v
|
||||||
|
Reference in New Issue
Block a user