File tree 1 file changed +6
-2
lines changed
src/components/ChallengeEditor
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ import {
23
23
CHALLENGE_TYPE_ID ,
24
24
REVIEW_TYPES ,
25
25
MILESTONE_STATUS ,
26
- PHASE_PRODUCT_CHALLENGE_ID_FIELD
26
+ PHASE_PRODUCT_CHALLENGE_ID_FIELD ,
27
+ QA_TRACK_ID
27
28
} from '../../config/constants'
28
29
import { PrimaryButton , OutlineButton } from '../Buttons'
29
30
import TrackField from './Track-Field'
@@ -965,6 +966,8 @@ class ChallengeEditor extends Component {
965
966
// chooses first available timeline template or fallback template for the new challenge
966
967
const defaultTemplate = avlTemplates && avlTemplates . length > 0 ? avlTemplates [ 0 ] : STD_DEV_TIMELINE_TEMPLATE
967
968
const isTask = _ . find ( metadata . challengeTypes , { id : typeId , isTask : true } )
969
+ const tags = trackId === QA_TRACK_ID ? [ 'QA' ] : [ ]
970
+
968
971
const newChallenge = {
969
972
status : 'New' ,
970
973
projectId : this . props . projectId ,
@@ -979,7 +982,8 @@ class ChallengeEditor extends Component {
979
982
timelineTemplateId : defaultTemplate . id ,
980
983
terms : [ { id : DEFAULT_TERM_UUID , roleId : SUBMITTER_ROLE_UUID } ] ,
981
984
groups : [ ] ,
982
- milestoneId
985
+ milestoneId,
986
+ tags
983
987
// prizeSets: this.getDefaultPrizeSets()
984
988
}
985
989
if ( isTask ) {
You can’t perform that action at this time.
0 commit comments