From 84c954d289daae3e15e4428d7eed977d6999b300 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 20 Oct 2023 14:41:15 +1300 Subject: [PATCH] fix(config-ui): missed entities when upgraded (#6293) (#6294) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 青湛 <0x1304570@gmail.com> --- 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 f52cbee9687..30e82b828db 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.getScopeConfig(plugin, connectionId, scopeConfigId); setName(res.name); - setEntities(res.entities); + setEntities(res.entities ?? []); setTransformation(omit(res, ['id', 'connectionId', 'name', 'entities', 'createdAt', 'updatedAt'])); } catch {} })();