Skip to content

Commit d20634e

Browse files
authored
Merge pull request #1661 from appirio-tech/dev
fix discussions
2 parents 4f9400b + 5ec56df commit d20634e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/projects/detail/ProjectDetail.jsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ProjectDetail extends Component {
4848
this.props.loadProjectDashboard(projectId)
4949
}
5050

51-
componentWillReceiveProps({isProcessing, isLoading, error, project, match, location}) {
51+
componentWillReceiveProps({isProcessing, isLoading, error, project, match}) {
5252
// handle just deleted projects
5353
if (! (error || isLoading || isProcessing) && _.isEmpty(project))
5454
this.props.history.push('/projects/')
@@ -61,10 +61,7 @@ class ProjectDetail extends Component {
6161
this.props.loadProjectDashboard(match.params.projectId)
6262
}
6363

64-
// reload project details if navigating by Link to same page
65-
if (this.props.location.key !== location.key) {
66-
this.props.loadProjectDashboard(match.params.projectId)
67-
}
64+
6865
}
6966

7067
getProjectRoleForCurrentUser({currentUserId, project}) {

0 commit comments

Comments
 (0)