This is an automated email from the ASF dual-hosted git repository.

likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 7f74b74ea fix(config-ui): tapd transformation does not bind correctly 
(#4905)
7f74b74ea is described below

commit 7f74b74ea73aee537e4c93ec1a78d11d0c32ea6f
Author: 青湛 <[email protected]>
AuthorDate: Wed Apr 12 22:03:36 2023 +0800

    fix(config-ui): tapd transformation does not bind correctly (#4905)
---
 config-ui/src/plugins/components/transformation-form/index.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config-ui/src/plugins/components/transformation-form/index.tsx 
b/config-ui/src/plugins/components/transformation-form/index.tsx
index eb33e89d2..6a970af19 100644
--- a/config-ui/src/plugins/components/transformation-form/index.tsx
+++ b/config-ui/src/plugins/components/transformation-form/index.tsx
@@ -61,7 +61,7 @@ export const TransformationForm = ({ plugin, connectionId, 
scopeId, id, onCancel
   }, [data, config.transformation]);
 
   const handleSubmit = async () => {
-    const [success] = await operator(
+    const [success, res] = await operator(
       () =>
         id
           ? API.updateTransformation(plugin, connectionId, id, { 
...transformation, name })
@@ -73,7 +73,7 @@ export const TransformationForm = ({ plugin, connectionId, 
scopeId, id, onCancel
     );
 
     if (success) {
-      onCancel?.();
+      onCancel?.(res);
     }
   };
 

Reply via email to