From c4a7cf97261ebac16ec0c9baf7fb7a286591253c Mon Sep 17 00:00:00 2001 From: yushen Date: Tue, 24 Mar 2026 16:03:39 +0800 Subject: [PATCH] fix(web): allow clearing workspace description and context fields Previously `|| undefined` prevented sending empty strings, making it impossible to clear these fields once set. Now always send the current value so the backend COALESCE correctly updates the column. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/web/app/(dashboard)/settings/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/app/(dashboard)/settings/page.tsx b/apps/web/app/(dashboard)/settings/page.tsx index ca31a753..da0c2678 100644 --- a/apps/web/app/(dashboard)/settings/page.tsx +++ b/apps/web/app/(dashboard)/settings/page.tsx @@ -131,8 +131,8 @@ export default function SettingsPage() { try { const updated = await api.updateWorkspace(workspace.id, { name, - description: description || undefined, - context: context || undefined, + description, + context, }); updateWorkspace(updated); setSaved(true);