Skip to content

Commit 843ef64

Browse files
author
Vikas Agarwal
committed
Hiding adding from add phase catalog
1 parent ffc6d3e commit 843ef64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/projects/detail/containers/ProjectAddPhaseContainer.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,14 @@ class ProjectAddPhaseContainer extends React.Component {
125125

126126
render() {
127127
const props = this.props
128+
const nonAddOnProductTemplates = _.filter(props.allProductTemplates, pt => !pt.isAddOn)
128129

129130
return (
130131
<EnhancedCreateView
131132
{...this.props}
132133
onCancel={this.closeWizard}
133134
showModal
134-
productTemplates={props.allProductTemplates}
135+
productTemplates={nonAddOnProductTemplates}
135136
onProductTemplateChange={this.updateProductTemplate}
136137
/>
137138
)

0 commit comments

Comments
 (0)