fix(update-member-drawer): correct job title assignment in member update request
- Updated the job title assignment in the member update request to use the value from the form field instead of a previously hardcoded variable.
This commit is contained in:
@@ -94,7 +94,7 @@ const UpdateMemberDrawer = ({ selectedMemberId, onRoleUpdate }: UpdateMemberDraw
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const body: ITeamMemberCreateRequest = {
|
const body: ITeamMemberCreateRequest = {
|
||||||
job_title: selectedJobTitle,
|
job_title: form.getFieldValue('jobTitle'),
|
||||||
emails: [teamMember.email],
|
emails: [teamMember.email],
|
||||||
is_admin: values.access === 'admin',
|
is_admin: values.access === 'admin',
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user