瀏覽代碼

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