fix(board/promoted_attributes): status attribute displayed when it shouldn't

This commit is contained in:
Elian Doran
2025-11-13 08:19:40 +02:00
parent 4f580a37a3
commit fd9b6e9e67

View File

@@ -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;
}