File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/components/ChallengeEditor Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -837,7 +837,8 @@ class ChallengeEditor extends Component {
837837 } ,
838838 descriptionFormat : 'markdown' ,
839839 timelineTemplateId : defaultTemplate . id ,
840- terms : [ { id : DEFAULT_TERM_UUID , roleId : SUBMITTER_ROLE_UUID } ]
840+ terms : [ { id : DEFAULT_TERM_UUID , roleId : SUBMITTER_ROLE_UUID } ] ,
841+ groups : [ ]
841842 // prizeSets: this.getDefaultPrizeSets()
842843 }
843844 if ( isBetaMode ( ) && projectDetail . terms ) {
@@ -848,6 +849,9 @@ class ChallengeEditor extends Component {
848849 . map ( term => ( { id : term , roleId : SUBMITTER_ROLE_UUID } ) )
849850 )
850851 }
852+ if ( isBetaMode ( ) && projectDetail . groups ) {
853+ newChallenge . groups . push ( ...projectDetail . groups )
854+ }
851855 const discussions = this . getDiscussionsConfig ( newChallenge )
852856 if ( discussions ) {
853857 newChallenge . discussions = discussions
You can’t perform that action at this time.
0 commit comments