π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
fix: user default avatar dissapear when profile update
Smaug6739102b60f9c731
diff --git a/frontend/app/pages/dashboard/settings/_views/profile.vue b/frontend/app/pages/dashboard/settings/_views/profile.vueindex 8eedf621..f9cfa5a4 100644--- a/frontend/app/pages/dashboard/settings/_views/profile.vue+++ b/frontend/app/pages/dashboard/settings/_views/profile.vue@@ -51,8 +51,8 @@ const uploadAvatar = async () => {if (!file) return;const body = new FormData();body.append('file', file);- const r = await resourcesStore.postAvatar(body);- return r.content_compiled || r.original_path;+ await resourcesStore.postAvatar(body);+ userStore.user.avatar = Date.now().toString();};const previewAvatar = (event: Event) => {if (!userStore.user) return;@@ -68,7 +68,6 @@ const updateUser = async () => {if (!userStore.user) return;try {await uploadAvatar();- userStore.user.avatar = Date.now().toString();await userStore.update(userStore.user);useNotifications().add({ type: 'success', title: 'User updated' });} catch (e) {