Explorar el Código

Fix quantity field type

Tatiana Inama hace 7 años
padre
commit
0c8ed60ee3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}}