Skip to content

Commit fd9b6e9

Browse files
committed
fix(board/promoted_attributes): status attribute displayed when it shouldn't
1 parent 4f580a3 commit fd9b6e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ function getAttributesWithDefinitions(note: FNote, attributesToIgnore: string[]
9999
const friendlyName = def?.promotedAlias || name;
100100
const props: Omit<AttributeWithDefinitions, "value"> = { def, name, type, friendlyName };
101101

102+
if (attributesToIgnore.includes(name)) continue;
103+
102104
if (type === "label") {
103105
const labels = note.getLabels(name);
104106
for (const label of labels) {
@@ -112,8 +114,6 @@ function getAttributesWithDefinitions(note: FNote, attributesToIgnore: string[]
112114
result.push({ ...props, value: relation.value } );
113115
}
114116
}
115-
116-
if (attributesToIgnore.includes(name)) continue;
117117
}
118118
return result;
119119
}

0 commit comments

Comments
 (0)