This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 1 file changed +9
-3
lines changed
src/routes/CreateNewTeam/components/SubmitContainer
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,9 @@ function SubmitContainer({
109
109
110
110
position . roleSearchRequestId = key ;
111
111
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 ) ;
113
113
position . roleName = role . name ;
114
- position . isCustomRole = role . isCustomRole
114
+ position . isCustomRole = role . isCustomRole ;
115
115
positions . push ( position ) ;
116
116
}
117
117
teamObject . positions = positions ;
@@ -145,6 +145,9 @@ function SubmitContainer({
145
145
navigate ( "/taas/myteams/createnewteam/create-taas-payment" ) ;
146
146
} else {
147
147
setMsg ( true ) ;
148
+ teamObject . positions = _ . map ( teamObject . positions , ( p ) =>
149
+ _ . omit ( p , "isCustomRole" )
150
+ ) ;
148
151
postTeamRequest ( teamObject )
149
152
. then ( ( ) => {
150
153
setTimeout ( ( ) => {
@@ -178,7 +181,10 @@ function SubmitContainer({
178
181
currentRole = { currentRole }
179
182
/>
180
183
) : (
181
- < NoMatchingProfilesResultCard role = { matchingRole } onSubmit = { ( ) => setAddAnotherOpen ( true ) } />
184
+ < NoMatchingProfilesResultCard
185
+ role = { matchingRole }
186
+ onSubmit = { ( ) => setAddAnotherOpen ( true ) }
187
+ />
182
188
) }
183
189
< div styleName = "right-side" >
184
190
< AddedRolesAccordion addedRoles = { addedRoles } />
You can’t perform that action at this time.
0 commit comments