Fix edit default team by admin (#3885)

# What this PR does
Fixes issue where when an admin edits the default team of another user
it would change the admin's default team instead of the selected user.

## Which issue(s) this PR fixes
#3819 

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
This commit is contained in:
Michael Derynck 2024-02-14 07:17:01 -07:00 committed by GitHub
parent 07916d0c71
commit 6ed1cf8385
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -7,12 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Fixed
- Fix edit default team by admin @mderynck ([#3885](https://github.com/grafana/oncall/pull/3885))
- Unblock slack install by skipping check chatops gateway link in OSS deployment @mderynck ([#3893](https://github.com/grafana/oncall/pull/3893))
## v1.3.105 (2024-02-13)
### Fixed
- Quotes in templates not rendering results correctly ([#3884](https://github.com/grafana/oncall/pull/3884))
- Unblock slack install by skipping check chatops gateway link in OSS deployment @mderynck ([#3893](https://github.com/grafana/oncall/pull/3893))
- Quotes in templates not rendering results correctly @mderynck ([#3884](https://github.com/grafana/oncall/pull/3884))
## v1.3.104 (2024-02-12)

View file

@ -50,7 +50,7 @@ export const UserInfoTab = (props: UserInfoTabProps) => {
withoutModal
defaultValue={storeUser.current_team}
onSelect={async (value) => {
await userStore.updateCurrentUser({ current_team: value });
await userStore.updateUser({ pk: storeUser.pk, current_team: value });
store.grafanaTeamStore.updateItems();
}}
/>