You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2022/09/02 05:26:45 UTC

[incubator-devlake] 03/03: fix(configui): use id instead of key

This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch release-v0.12
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 8481a2b6ca66ace362d1c16c958dc9f278b5d579
Author: Yingchu Chen <yi...@merico.dev>
AuthorDate: Fri Sep 2 09:59:05 2022 +0800

    fix(configui): use id instead of key
    
    closes #2930
---
 config-ui/src/hooks/useJIRA.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-ui/src/hooks/useJIRA.jsx b/config-ui/src/hooks/useJIRA.jsx
index 2c21f744..8d9d0808 100644
--- a/config-ui/src/hooks/useJIRA.jsx
+++ b/config-ui/src/hooks/useJIRA.jsx
@@ -132,7 +132,7 @@ const useJIRA = ({ apiProxyPath, issuesEndpoint, fieldsEndpoint, boardsEndpoint
   }, [issueTypesResponse])
 
   useEffect(() => {
-    setFields(fieldsResponse ? createListData(fieldsResponse, 'name', 'key') : [])
+    setFields(fieldsResponse ? createListData(fieldsResponse, 'name', 'id') : [])
   }, [fieldsResponse])
 
   useEffect(() => {