Skip to content

Commit

Permalink
fix(home): make homepage load first project on mount
Browse files Browse the repository at this point in the history
  • Loading branch information
evansiroky authored and landonreed committed Jan 8, 2019
1 parent 2d7f0bc commit c475562
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/manager/actions/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ export function onUserHomeMount (user: ?ManagerUserState, projectId: ?string) {
}
})
projectId = userProjectIds && userProjectIds[0]
} else {
}
if (projectId) {
const _projectId = projectId
dispatch(fetchProjectFeeds(_projectId))
.then(() => browserHistory.push(`/home/${_projectId}`))
Expand Down

0 comments on commit c475562

Please sign in to comment.