File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ import { getProjectTemplateById } from '../../../helpers/templates'
1010import ScopeAndSpecificationContainer from './ScopeAndSpecificationContainer'
1111
1212const ScopeContainer = ( props ) => {
13+
14+ if ( ! props . projectTemplate ) {
15+ return null
16+ }
17+
1318 const template = props . projectTemplate . scope
1419
1520 return (
You can’t perform that action at this time.
0 commit comments