From fd9b6e9e673b6448e20ba5e19d2ac91fd8a3b5e2 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 13 Nov 2025 08:19:40 +0200 Subject: [PATCH] fix(board/promoted_attributes): status attribute displayed when it shouldn't --- .../widgets/attribute_widgets/PromotedAttributesDisplay.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx b/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx index a90d48ce4..a8ae11c8a 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 = { 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; }