Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(react/collections/board): ignore empty titles
Elian Dorand908a1b0d261
diff --git a/apps/client/src/widgets/collections/board/index.tsx b/apps/client/src/widgets/collections/board/index.tsxindex 552f71476f..5bbfed9adc 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, multilinonKeyDown={(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();