diff --git a/frontend/app/components/Session_/Issues/Issues.js b/frontend/app/components/Session_/Issues/Issues.js index 66fc80bc8..bba3eaf40 100644 --- a/frontend/app/components/Session_/Issues/Issues.js +++ b/frontend/app/components/Session_/Issues/Issues.js @@ -21,7 +21,7 @@ import stl from './issues.css'; fetchIssueLoading: state.getIn(['assignments', 'fetchAssignment', 'loading']), fetchIssuesLoading: state.getIn(['assignments', 'fetchAssignments', 'loading']), projectsLoading: state.getIn(['assignments', 'fetchProjects', 'loading']), - provider: state.getIn([ 'issues', 'list']).provider, + issuesIntegration: state.getIn([ 'issues', 'list']).first() || {}, }), { fetchAssigment, fetchAssignments, fetchMeta, fetchProjects }) @withToggle('isModalDisplayed', 'toggleModal') class Issues extends React.Component { @@ -64,9 +64,10 @@ class Issues extends React.Component { render() { const { sessionId, activeIssue, isModalDisplayed, projectsLoading, - fetchIssueLoading, issues, metaLoading, fetchIssuesLoading, provider + fetchIssueLoading, issues, metaLoading, fetchIssuesLoading, issuesIntegration } = this.props; const { showModal } = this.state; + const provider = issuesIntegration.provider return (
diff --git a/frontend/app/types/integrations/issueTracker.js b/frontend/app/types/integrations/issueTracker.js index ef53b01f1..c03ed1005 100644 --- a/frontend/app/types/integrations/issueTracker.js +++ b/frontend/app/types/integrations/issueTracker.js @@ -7,7 +7,6 @@ export const ACCESS_KEY_ID_LENGTH = 20; export default Record({ username: undefined, token: undefined, - provider: undefined, url: undefined, provider: 'jira' }, {