e2corporation commented on code in PR #2525:
URL: https://github.com/apache/incubator-devlake/pull/2525#discussion_r923304955


##########
config-ui/src/hooks/useJIRA.jsx:
##########
@@ -30,6 +31,9 @@ const useJIRA = ({ apiProxyPath, issuesEndpoint, 
fieldsEndpoint, boardsEndpoint
   const [error, setError] = useState()
 
   const fetchIssueTypes = useCallback(() => {
+    if (activeConnection.plugin !== Providers.JIRA) {

Review Comment:
   @warren830 @klesh This isn't the ideal way to do things... returning to 
escape async logic,  these calls should have been wrapped at a higher layer not 
at this layer....



-- 
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