likyh opened a new issue, #2919:
URL: https://github.com/apache/incubator-devlake/issues/2919

   ## What and why to refactor
   
   
https://github.com/apache/incubator-devlake/blame/3b24e450ed2a56d905b6b66c11e520894d47ea10/config-ui/src/hooks/useJIRA.jsx#L67-L89
   
   It will never catch an error in Line 85 even if the request fails.
   await should catch error by `try/catch` instead of `Promise.catch` in Line 
77.
   
   So sometimes it will request fail but without any tips. Or maybe there are 
some other unpredictable bugs.
   
   ## Describe the solution you think
   
   unwrap function `fetchIssueFields` and delete `Promise.catch`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to