mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 16:55:50 +01:00
fix(board/promoted_attributes): status attribute displayed when it shouldn't
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user