Skip to content

Commit

Permalink
fix(settings/integration): Teams integration settings default user fi…
Browse files Browse the repository at this point in the history
…x SUP-46197
  • Loading branch information
amirch1 committed Jan 8, 2025
1 parent 2ddf9fb commit 7123f11
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@ export class EditTeamsProfileComponent implements OnDestroy {
const userNotFoundMethod = formValue.createUser ? 'create' : 'assign-default';
Object.assign(this._profile.settings, {userNotFoundMethod});

if (formValue.defaultUserId?.length) {
if (formValue.defaultUserId?.length && formValue.createUser === false) {
Object.assign(this._profile.settings, {defaultUserId: formValue.defaultUserId[0].id});
} else {
Object.assign(this._profile.settings, {defaultUserId: ''});
}

this.onSave.emit(this._profile);
Expand Down

0 comments on commit 7123f11

Please sign in to comment.