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(board/promoted_attributes): status attribute displayed when it shouldn't
Elian Doranfd9b6e9e673b
diff --git a/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx b/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsxindex a90d48ce45..a8ae11c8a4 100644--- a/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx+++ b/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx@@ -99,6 +99,8 @@ function getAttributesWithDefinitions(note: FNote, attributesToIgnore: string[]const friendlyName = def?.promotedAlias || name;const props: Omit<AttributeWithDefinitions, "value"> = { def, name, type, friendlyName };+ if (attributesToIgnore.includes(name)) continue;+if (type === "label") {const labels = note.getLabels(name);for (const label of labels) {@@ -112,8 +114,6 @@ function getAttributesWithDefinitions(note: FNote, attributesToIgnore: string[]result.push({ ...props, value: relation.value } );}}-- if (attributesToIgnore.includes(name)) continue;}return result;}