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(promoted_attributes): checkbox not displaying initial value properly (closes #8062)
Elian Dorand6b6832a1dfd
diff --git a/apps/client/src/widgets/PromotedAttributes.tsx b/apps/client/src/widgets/PromotedAttributes.tsxindex 0ec79725a0..a9618d3a63 100644--- a/apps/client/src/widgets/PromotedAttributes.tsx+++ b/apps/client/src/widgets/PromotedAttributes.tsx@@ -217,6 +217,7 @@ function LabelInput({ inputId, ...props }: CellProps & { inputId: string }) {id={inputId}type={LABEL_MAPPINGS[definition.labelType ?? "text"]}value={valueAttr.value}+ checked={definition.labelType === "boolean" ? valueAttr.value === "true" : undefined}placeholder={t("promoted_attributes.unset-field-placeholder")}data-attribute-id={valueAttr.attributeId}data-attribute-type={valueAttr.type}