File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/projects/detail/components Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,10 @@ const SpecSection = props => {
163163 // to upload attachments for products. We need to come up with a better way to handle this.
164164 // defaults to appDefinition to be backward compatible
165165 let category = _ . get ( props , 'category' , 'appDefinition' )
166+ // NOTE temporary patch for handling wrong category for v2 projects' attachments
167+ // it is happening because we are merging project and product templates for v2 projects and we don't have files
168+ // field in project templates but we have it for product templates which in turn has category set as `product`
169+ category = projectLatest . version && projectLatest . version === 'v2' ? 'appDefinition' : category
166170 category = 'product' === category ? `${ category } #${ projectLatest . id } ` : category
167171 return (
168172 < FileListContainer
You can’t perform that action at this time.
0 commit comments