Skip to content

Build your personal knowledge base with Trilium Notes

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.ts
index 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>, attributeD
if (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") {