Skip to content

Commit

Permalink
do not reload
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Jul 6, 2024
1 parent 4a78314 commit eae9e9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/me/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ useHead({
const {
data: user,
refresh: refreshSettings,
} = await useAsyncData(() => app$.$client.me.settings.query())
const {
Expand Down Expand Up @@ -158,8 +157,10 @@ async function saveAvatar() {
uploadingAvatarState.value = UploadingAvatarState.Succeed
newAvatarURL.value = url
session.setAvatarTimestamp()
await refreshSettings()
editor.value?.reload()
user.value && (user.value.avatarSrc = url)
// do not refresh settings, user might have changed their other settings without saving.
// await refreshSettings()
// editor.value?.reload()
}
async function updateUserSettings() {
dyn.save()
Expand Down

0 comments on commit eae9e9a

Please sign in to comment.