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 24804f67 fix(config-ui): incorrect value to get when transformation 
does not exist (#3343)
24804f67 is described below

commit 24804f67423a726d955003589cc93bb773db16b2
Author: 青湛 <[email protected]>
AuthorDate: Mon Oct 10 17:37:50 2022 +0800

    fix(config-ui): incorrect value to get when transformation does not exist 
(#3343)
---
 config-ui/src/hooks/useDataScopesManager.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-ui/src/hooks/useDataScopesManager.jsx 
b/config-ui/src/hooks/useDataScopesManager.jsx
index d96cb2d0..f100f8d3 100644
--- a/config-ui/src/hooks/useDataScopesManager.jsx
+++ b/config-ui/src/hooks/useDataScopesManager.jsx
@@ -543,7 +543,7 @@ function useDataScopesManager({
       boardsList: boardsList,
       transformations: c.scope.map((s) => ({ ...s.transformation })),
       transformationStates: c.scope.map((s) =>
-        Object.values(s.transformation).some((v) =>
+        Object.values(s.transformation ?? {}).some((v) =>
           Array.isArray(v)
             ? v.length > 0
             : v && typeof v === 'object'

Reply via email to