You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2023/10/19 09:34:14 UTC
[incubator-devlake] branch release-v0.18 updated: fix(config-ui): missed entities when upgraded (#6287)
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: 青湛 <0x...@gmail.com>
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 {}
})();