Skip to content

Commit

Permalink
Passes the current state of experimental_features to UserApi
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon committed Oct 2, 2023
1 parent 3940a5a commit e25c4b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dispatch/static/dispatch/src/components/AppToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ export default {
UserApi.getUserInfo()
.then((response) => {
let userId = response.data.id
UserApi.update(userId, { id: userId, experimental_features: this.experimental_features })
let currentUserExperimentalFeatures = this.currentUser().experimental_features
UserApi.update(userId, {
id: userId,
experimental_features: currentUserExperimentalFeatures,
})
})
.catch((error) => {
console.error("Error occurred while updating experimental features: ", error)
Expand Down

0 comments on commit e25c4b8

Please sign in to comment.