소스 검색

Fix quantity field type

Tatiana Inama 7 년 전
부모
커밋
0c8ed60ee3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}}