convert servings to number on import

This commit is contained in:
smilerz 2021-04-15 14:46:38 -05:00
parent 254267c2a7
commit 358ba5120d

View File

@ -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