Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
yomybaby committed Sep 5, 2024
1 parent f8636ce commit 9dc2c91
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions react/src/components/ServiceLauncherPageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -566,16 +566,8 @@ const ServiceLauncherPageContent: React.FC<ServiceLauncherPageContentProps> = ({
}
})
.catch((err: any) => {
// error on input
if (err.errorFields?.length > 0) {
err.errorFields.forEach((error: any) => {
message.error(error.errors);
});
} else if (err.message) {
message.error(err.message);
} else {
message.error(t('modelService.FormValidationFailed'));
}
// this catch function only for form validation error and unhandled error in `form.validateFields()..then()`.
// It's not for error handling in mutation.
});
};

Expand Down

0 comments on commit 9dc2c91

Please sign in to comment.