Skip to content

Commit 7ae71a6

Browse files
fix: only allow submitting form if dirty
1 parent 0f342ed commit 7ae71a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/pages/WorkspaceSettingsPage/WorkspaceParametersPage/WorkspaceParametersForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export const WorkspaceParametersForm: FC<WorkspaceParameterFormProps> = ({
154154
<FormFooter
155155
onCancel={onCancel}
156156
isLoading={isSubmitting}
157-
submitDisabled={disabled}
157+
submitDisabled={disabled || !form.dirty}
158158
/>
159159
</HorizontalForm>
160160
</>

0 commit comments

Comments
 (0)