Skip to content

Commit

Permalink
fix: check type selector should be disabled on edit (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdubrock authored Sep 8, 2021
1 parent 95cda5a commit dda165e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/CheckEditor/CheckEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ export const CheckEditor = ({ check, onReturn }: Props) => {
name="checkType"
control={formMethods.control}
render={({ field }) => (
<Select {...field} placeholder="Check type" options={CHECK_TYPE_OPTIONS} width={30} />
<Select
{...field}
placeholder="Check type"
options={CHECK_TYPE_OPTIONS}
width={30}
disabled={check?.id ? true : false}
/>
)}
/>
</Field>
Expand Down

0 comments on commit dda165e

Please sign in to comment.