From d908a1b0d2611e58200e5f9baba734d46e8da512 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 12 Sep 2025 23:41:38 +0300 Subject: [PATCH] chore(react/collections/board): ignore empty titles --- apps/client/src/widgets/collections/board/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/collections/board/index.tsx b/apps/client/src/widgets/collections/board/index.tsx index 552f71476..5bbfed9ad 100644 --- a/apps/client/src/widgets/collections/board/index.tsx +++ b/apps/client/src/widgets/collections/board/index.tsx @@ -242,7 +242,7 @@ export function TitleEditor({ currentValue, placeholder, save, dismiss, multilin onKeyDown={(e) => { if (e.key === "Enter") { const newValue = e.currentTarget.value; - if (newValue !== currentValue || isNewItem) { + if (newValue.trim() && (newValue !== currentValue || isNewItem)) { save(newValue); } dismiss(); @@ -253,7 +253,7 @@ export function TitleEditor({ currentValue, placeholder, save, dismiss, multilin } }} onBlur={(newValue) => { - if (newValue !== currentValue || isNewItem) { + if (newValue.trim() && (newValue !== currentValue || isNewItem)) { save(newValue); } dismiss();