You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2023/10/19 09:23:08 UTC
[incubator-devlake] 01/01: fix(config-ui): missed the entities when upgraded
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch release-v0.18-fix-6005
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit aef82158627724da40fe86b3e5869888d0ddf0de
Author: mintsweet <0x...@gmail.com>
AuthorDate: Thu Oct 19 22:22:54 2023 +1300
fix(config-ui): missed the entities when upgraded
---
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 {}
})();