This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/routes/CreateNewTeam/components/SubmitContainer Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,9 @@ function SubmitContainer({
109109
110110 position . roleSearchRequestId = key ;
111111 position . roleName = addedRoles . find ( ( role ) => role . searchId === key ) . name ;
112- const role = addedRoles . find ( ( role ) => role . searchId === key )
112+ const role = addedRoles . find ( ( role ) => role . searchId === key ) ;
113113 position . roleName = role . name ;
114- position . isCustomRole = role . isCustomRole
114+ position . isCustomRole = role . isCustomRole ;
115115 positions . push ( position ) ;
116116 }
117117 teamObject . positions = positions ;
@@ -145,6 +145,9 @@ function SubmitContainer({
145145 navigate ( "/taas/myteams/createnewteam/create-taas-payment" ) ;
146146 } else {
147147 setMsg ( true ) ;
148+ teamObject . positions = _ . map ( teamObject . positions , ( p ) =>
149+ _ . omit ( p , "isCustomRole" )
150+ ) ;
148151 postTeamRequest ( teamObject )
149152 . then ( ( ) => {
150153 setTimeout ( ( ) => {
@@ -178,7 +181,10 @@ function SubmitContainer({
178181 currentRole = { currentRole }
179182 />
180183 ) : (
181- < NoMatchingProfilesResultCard role = { matchingRole } onSubmit = { ( ) => setAddAnotherOpen ( true ) } />
184+ < NoMatchingProfilesResultCard
185+ role = { matchingRole }
186+ onSubmit = { ( ) => setAddAnotherOpen ( true ) }
187+ />
182188 ) }
183189 < div styleName = "right-side" >
184190 < AddedRolesAccordion addedRoles = { addedRoles } />
You can’t perform that action at this time.
0 commit comments