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
fix(collections/table): unable to set number cell to zero (closes #6555)
Elian Doran05da2d7a50a5
diff --git a/apps/client/src/widgets/collections/table/row_editing.ts b/apps/client/src/widgets/collections/table/row_editing.tsindex c4df69e7ae..03f6b8ff49 100644--- a/apps/client/src/widgets/collections/table/row_editing.ts+++ b/apps/client/src/widgets/collections/table/row_editing.ts@@ -51,6 +51,8 @@ export default function useRowTableEditing(api: RefObject<Tabulator>, attributeDif (type === "labels") {if (typeof newValue === "boolean") {newValue = newValue ? "true" : "false";+ } else if (typeof newValue === "number") {+ newValue = String(newValue);}setLabel(noteId, name, newValue);} else if (type === "relations") {