fix: set the default menu team error (#433)

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/434/head
Ryan Wang 2022-02-11 15:29:52 +08:00 committed by GitHub
parent f21c2e99cf
commit 28ecf16fe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -325,11 +325,9 @@ export default {
handleSetDefaultTeam() { handleSetDefaultTeam() {
this.teams.default.saving = true this.teams.default.saving = true
apiClient.option apiClient.option
.save([ .saveMapView({
{ default_menu_team: this.teams.selected
default_menu_team: this.teams.selected })
}
])
.catch(() => { .catch(() => {
this.teams.default.errored = true this.teams.default.errored = true
}) })