From 63b2fd5d7782eedc16d8453ac76afe18ba695feb Mon Sep 17 00:00:00 2001 From: ivannoskov Date: Thu, 22 Jan 2026 17:20:40 +0300 Subject: [PATCH] fix: avatars & sidebars --- components/layout/app-sidebar.tsx | 6 +++--- lib/api/workspaces.ts | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/components/layout/app-sidebar.tsx b/components/layout/app-sidebar.tsx index f40a880..00b431b 100644 --- a/components/layout/app-sidebar.tsx +++ b/components/layout/app-sidebar.tsx @@ -550,10 +550,10 @@ export function AppSidebar({ ...props }: React.ComponentProps) { const renderHelpSubItem = React.useCallback((item: HelpItem) => { const content = ( <> - -

{item.title}

+ +

{item.title}

{item.external && ( - + )} ); diff --git a/lib/api/workspaces.ts b/lib/api/workspaces.ts index 6932c78..2366874 100644 --- a/lib/api/workspaces.ts +++ b/lib/api/workspaces.ts @@ -44,9 +44,7 @@ export const workspacesApi = { uploadAvatar: (workspaceId: string, file: File) => { const formData = new FormData(); formData.append("file", file); - return api.post(`${BASE_PATH}/${workspaceId}/avatar`, formData, { - headers: { "Content-Type": "multipart/form-data" }, - }); + return api.post(`${BASE_PATH}/${workspaceId}/avatar`, formData); }, /**