Skip to content

Commit ca0ea3e

Browse files
authored
Merge pull request #2871 from sumitdaga/issue-2828
fixes issue #2828
2 parents 154d831 + 387b25d commit ca0ea3e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/projects/detail/ProjectDetail.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class ProjectDetail extends Component {
111111
if(project
112112
&& project.version
113113
&& project.version !== 'v3'
114+
&& project.id === parseInt(match.params.projectId)
114115
&& this.props.history.location.pathname.indexOf('/scope') !== -1 ){
115116
this.props.history.push(this.props.history.location.pathname.replace('/scope', '/specification'))
116117
}

src/projects/detail/containers/ScopeContainer.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import { getProjectTemplateById } from '../../../helpers/templates'
1010
import ScopeAndSpecificationContainer from './ScopeAndSpecificationContainer'
1111

1212
const ScopeContainer = (props) => {
13+
14+
if (!props.projectTemplate) {
15+
return null
16+
}
17+
1318
const template = props.projectTemplate.scope
1419

1520
return (

0 commit comments

Comments
 (0)