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

mintsweet pushed a commit to branch release-v0.17
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.17 by this push:
     new 3f1ba4e32 fix(config-ui): missed initial entities in data scope form 
(#5102)
3f1ba4e32 is described below

commit 3f1ba4e3290755726a47a2a984eb8432906a52d3
Author: 青湛 <[email protected]>
AuthorDate: Sat May 6 14:29:01 2023 +0800

    fix(config-ui): missed initial entities in data scope form (#5102)
---
 config-ui/src/plugins/components/data-scope/index.tsx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/config-ui/src/plugins/components/data-scope/index.tsx 
b/config-ui/src/plugins/components/data-scope/index.tsx
index f44d674b5..02bca7c65 100644
--- a/config-ui/src/plugins/components/data-scope/index.tsx
+++ b/config-ui/src/plugins/components/data-scope/index.tsx
@@ -67,6 +67,7 @@ export const DataScope = ({ connections, cancelBtnProps, 
submitBtnProps, onCance
         plugin={plugin}
         connectionId={connectionId}
         initialScope={origin}
+        initialEntities={scope[0]?.entities}
         cancelBtnProps={cancelBtnProps}
         submitBtnProps={submitBtnProps}
         onCancel={onCancel}
@@ -159,6 +160,7 @@ export const DataScope = ({ connections, cancelBtnProps, 
submitBtnProps, onCance
             plugin={connection.plugin}
             connectionId={connection.connectionId}
             initialScope={connection.origin}
+            initialEntities={connection.scope[0]?.entities}
             onCancel={handleCancel}
             onSubmit={(scope: MixConnection['scope'], origin: 
MixConnection['origin']) =>
               handleSubmit(connection, scope, origin)

Reply via email to