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 @@ -847,7 +847,8 @@ class ChallengeEditor extends Component {
847847 } ,
848848 descriptionFormat : 'markdown' ,
849849 timelineTemplateId : defaultTemplate . id ,
850- terms : [ { id : DEFAULT_TERM_UUID , roleId : SUBMITTER_ROLE_UUID } ]
850+ terms : [ { id : DEFAULT_TERM_UUID , roleId : SUBMITTER_ROLE_UUID } ] ,
851+ groups : [ ]
851852 // prizeSets: this.getDefaultPrizeSets()
852853 }
853854 if ( isBetaMode ( ) && projectDetail . terms ) {
@@ -858,6 +859,9 @@ class ChallengeEditor extends Component {
858859 . map ( term => ( { id : term , roleId : SUBMITTER_ROLE_UUID } ) )
859860 )
860861 }
862+ if ( isBetaMode ( ) && projectDetail . groups ) {
863+ newChallenge . groups . push ( ...projectDetail . groups )
864+ }
861865 const discussions = this . getDiscussionsConfig ( newChallenge )
862866 if ( discussions ) {
863867 newChallenge . discussions = discussions
You can’t perform that action at this time.
0 commit comments