Skip to content

Commit

Permalink
fix: return proper error message if form edit is invalid (#1415)
Browse files Browse the repository at this point in the history
Co-authored-by: sujanadh <sujanadh07@gmail.com>
  • Loading branch information
Sujanadh and sujanadh authored Apr 3, 2024
1 parent 9d9ef28 commit 27fe9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/api/CreateProjectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ const ValidateCustomForm: Function = (url: string, formUpload: any) => {
dispatch(
CommonActions.SetSnackBar({
open: true,
message: JSON.stringify(error) || 'Something Went Wrong',
message: error?.response?.data?.detail || 'Something Went Wrong',
variant: 'error',
duration: 5000,
}),
Expand Down

0 comments on commit 27fe9a5

Please sign in to comment.