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

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


The following commit(s) were added to refs/heads/release-v0.18 by this push:
     new 6bc79fef9 fix(config-ui): missed entities when upgraded (#6287)
6bc79fef9 is described below

commit 6bc79fef990f7970e1482e07bc440993d592cff1
Author: 青湛 <[email protected]>
AuthorDate: Thu Oct 19 22:34:09 2023 +1300

    fix(config-ui): missed entities when upgraded (#6287)
---
 config-ui/src/plugins/components/scope-config-form/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-ui/src/plugins/components/scope-config-form/index.tsx 
b/config-ui/src/plugins/components/scope-config-form/index.tsx
index 963310b58..59890e082 100644
--- a/config-ui/src/plugins/components/scope-config-form/index.tsx
+++ b/config-ui/src/plugins/components/scope-config-form/index.tsx
@@ -81,7 +81,7 @@ export const ScopeConfigForm = ({
       try {
         const res = await API.getScopeConfig(plugin, connectionId, 
scopeConfigId);
         setName(res.name);
-        setEntities(res.entities);
+        setEntities(res.entities ?? []);
         setTransformation(omit(res, ['id', 'connectionId', 'name', 'entities', 
'createdAt', 'updatedAt']));
       } catch {}
     })();

Reply via email to