Skip to content

Commit

Permalink
fix(frontend): fix analyzer config form for weight field (#2925)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeepc committed Jul 11, 2023
1 parent 234dd1e commit f8a2d11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/components/Settings/Linter/Rule.tsx
Expand Up @@ -29,7 +29,11 @@ const Rule = ({fieldKey, baseName, isDisabled}: IProps) => {
</Col>
<Col span="auto">-</Col>
<Col span={11}>
<Form.Item name={[fieldKey, 'weight']} label="Weight input configuration">
<Form.Item
name={[fieldKey, 'weight']}
label="Weight input configuration"
normalize={value => parseInt(String(value ?? 0), 10)}
>
<Input type="number" disabled={isDisabled} />
</Form.Item>
</Col>
Expand Down

0 comments on commit f8a2d11

Please sign in to comment.