File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/components/ChallengeEditor Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ import {
2323 CHALLENGE_TYPE_ID ,
2424 REVIEW_TYPES ,
2525 MILESTONE_STATUS ,
26- PHASE_PRODUCT_CHALLENGE_ID_FIELD
26+ PHASE_PRODUCT_CHALLENGE_ID_FIELD ,
27+ QA_TRACK_ID
2728} from '../../config/constants'
2829import { PrimaryButton , OutlineButton } from '../Buttons'
2930import TrackField from './Track-Field'
@@ -965,6 +966,8 @@ class ChallengeEditor extends Component {
965966 // chooses first available timeline template or fallback template for the new challenge
966967 const defaultTemplate = avlTemplates && avlTemplates . length > 0 ? avlTemplates [ 0 ] : STD_DEV_TIMELINE_TEMPLATE
967968 const isTask = _ . find ( metadata . challengeTypes , { id : typeId , isTask : true } )
969+ const tags = trackId === QA_TRACK_ID ? [ 'QA' ] : [ ]
970+
968971 const newChallenge = {
969972 status : 'New' ,
970973 projectId : this . props . projectId ,
@@ -979,7 +982,8 @@ class ChallengeEditor extends Component {
979982 timelineTemplateId : defaultTemplate . id ,
980983 terms : [ { id : DEFAULT_TERM_UUID , roleId : SUBMITTER_ROLE_UUID } ] ,
981984 groups : [ ] ,
982- milestoneId
985+ milestoneId,
986+ tags
983987 // prizeSets: this.getDefaultPrizeSets()
984988 }
985989 if ( isTask ) {
You can’t perform that action at this time.
0 commit comments