File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/projects/detail/containers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 44 * NOTE data is loaded by the parent ProjectDetail component
55 */
66import React from 'react'
7+ import _ from 'lodash'
78import { connect } from 'react-redux'
89
910import ScopeAndSpecificationContainer from './ScopeAndSpecificationContainer'
1011import { getProjectProductTemplates } from '../../../helpers/templates'
1112
1213const SpecificationContainer = ( props ) => {
13- const template = props . productTemplates [ 0 ] . template
14-
1514 // as for old projects we use productTemplate instead of projectTemplate
1615 // it has `questions` property instead of `sections`
1716 // so we normalize template scheme for other components here
18- template . sections = template . questions
17+ const template = _ . omit ( props . productTemplates [ 0 ] . template , 'questions' )
18+ template . sections = props . productTemplates [ 0 ] . template . questions
1919
2020 return (
2121 < ScopeAndSpecificationContainer
You can’t perform that action at this time.
0 commit comments