Skip to content

Commit dda165e

Browse files
authored
fix: check type selector should be disabled on edit (#360)
1 parent 95cda5a commit dda165e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/components/CheckEditor/CheckEditor.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,13 @@ export const CheckEditor = ({ check, onReturn }: Props) => {
9898
name="checkType"
9999
control={formMethods.control}
100100
render={({ field }) => (
101-
<Select {...field} placeholder="Check type" options={CHECK_TYPE_OPTIONS} width={30} />
101+
<Select
102+
{...field}
103+
placeholder="Check type"
104+
options={CHECK_TYPE_OPTIONS}
105+
width={30}
106+
disabled={check?.id ? true : false}
107+
/>
102108
)}
103109
/>
104110
</Field>

0 commit comments

Comments
 (0)