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 be954700e fix(config-ui): missed initial entities in data scope form
(#5102)
be954700e is described below
commit be954700e8300a5dc0be61d0e9a91632d92ec986
Author: 青湛 <[email protected]>
AuthorDate: Sat May 6 10:02:33 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)