Skip to content

Commit

Permalink
fix: Keep template modal open when config is invalid (#9424)
Browse files Browse the repository at this point in the history
  • Loading branch information
gt2345 committed May 24, 2024
1 parent 3dfb9ec commit 6ad9d73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webui/react/src/pages/Templates/TemplateCreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const TemplateCreateModalComponent: React.FC<Props> = ({ workspaceId, onSuccess,
type: ErrorType.Server,
});
}
throw e;
}
}, [form, openToast, onSuccess, template]);

Expand All @@ -114,7 +115,7 @@ const TemplateCreateModalComponent: React.FC<Props> = ({ workspaceId, onSuccess,
return (
<Modal
cancel
size="medium"
size="large"
submit={{
disabled,
form: idPrefix + FORM_ID,
Expand Down

0 comments on commit 6ad9d73

Please sign in to comment.