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/20 01:33:56 UTC
[incubator-devlake] branch main updated: fix(config-ui): missed entities when upgraded (#6293)
This is an automated email from the ASF dual-hosted git repository.
klesh 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 1cd4c7cd9 fix(config-ui): missed entities when upgraded (#6293)
1cd4c7cd9 is described below
commit 1cd4c7cd9a404e8bbff0892024ff8d1c9b4fcfd9
Author: 青湛 <0x...@gmail.com>
AuthorDate: Fri Oct 20 14:33:52 2023 +1300
fix(config-ui): missed entities when upgraded (#6293)
---
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 08d6062e9..a8aa0a028 100644
--- a/config-ui/src/plugins/components/scope-config-form/index.tsx
+++ b/config-ui/src/plugins/components/scope-config-form/index.tsx
@@ -82,7 +82,7 @@ export const ScopeConfigForm = ({
try {
const res = await API.scopeConfig.get(plugin, connectionId, scopeConfigId);
setName(res.name);
- setEntities(res.entities);
+ setEntities(res.entities ?? []);
setTransformation(omit(res, ['id', 'connectionId', 'name', 'entities', 'createdAt', 'updatedAt']));
} catch {}
})();