convert servings to number on import

This commit is contained in:
smilerz
2021-04-15 14:47:35 -05:00
parent d814d13d54
commit 496e04cfc8

View File

@@ -922,7 +922,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