convert servings to number on import
This commit is contained in:
parent
254267c2a7
commit
358ba5120d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user