Skip to content

Build your personal knowledge base with Trilium Notes

fix(labels): Code review issue

Mystler2b94d9693084
diff --git a/apps/client/src/widgets/PromotedAttributes.tsx b/apps/client/src/widgets/PromotedAttributes.tsx
index 47b6fa2432..6a1a8640f2 100644
--- a/apps/client/src/widgets/PromotedAttributes.tsx
+++ b/apps/client/src/widgets/PromotedAttributes.tsx
@@ -171,9 +171,9 @@ function PromotedAttributeCell(props: CellProps) {
);
}
-const LABEL_MAPPINGS: Record<LabelType, HTMLInputTypeAttribute> = {
+const LABEL_MAPPINGS: Record<LabelType, HTMLInputTypeAttribute | undefined> = {
text: "text",
- textarea: "text",
+ textarea: undefined,
number: "number",
boolean: "checkbox",
date: "date",