Skip to content

Commit

Permalink
fix(issue): Make sure the right repository is fetched (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinesedfan authored and Houssein Djirdeh committed Sep 29, 2017
1 parent 574a6f2 commit 71a9320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/issue/screens/issue.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ class Issue extends Component {

getIssueInformation = () => {
const {
issue,
navigation,
repository,
getIssueComments,
Expand All @@ -180,10 +179,11 @@ class Issue extends Component {
issueURLParam ? issueCommentsURL : issueParam.comments_url
),
]).then(() => {
const issue = this.props.issue;

if (
issueParam &&
repository.full_name !==
issueParam.repository_url.replace(`${v3.root}/repos/`, '')
issue.repository_url.replace(`${v3.root}/repos/`, '')
) {
Promise.all([
getRepository(issue.repository_url),
Expand Down

0 comments on commit 71a9320

Please sign in to comment.