Browse Source

Fix quantity field type

Tatiana Inama 7 years atrás
parent
commit
0c8ed60ee3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      recipes/src/components/RecipeForm/index.tsx

+ 1 - 1
recipes/src/components/RecipeForm/index.tsx

@@ -106,7 +106,7 @@ const SubrecipeForm = (props: any) => {
                           />
                         </Cell>
                         <Cell columns={1}>
-                          <Field name={`ingredients[${selectedTab}].ingredients[${index}].quantity`}/>
+                          <Field name={`ingredients[${selectedTab}].ingredients[${index}].quantity`} type='number'/>
                           {ingredient.unit && ingredient.quantity ? (
                             <Dialog
                               measure={{unit: ingredient.unit, quantity: ingredient.quantity}}