haifxu commented on code in PR #10403:
URL: https://github.com/apache/inlong/pull/10403#discussion_r1637870166
##########
inlong-dashboard/src/ui/pages/AgentModule/CreateModal.tsx:
##########
@@ -135,8 +142,14 @@ const Comp: React.FC<Props> = ({ id, type, ...modalProps
}) => {
{
manual: true,
onSuccess: result => {
- form.setFieldsValue(result);
+ if (isCreate) {
+ form.resetFields();
+ form.setFieldsValue({ ...result, name: '', version: '', packageId:
'' });
+ } else {
+ form.setFieldsValue(result);
+ }
},
+ onError: e => {},
Review Comment:
If you don't need to output the error log, you should delete it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]