mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +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 friendlyName = def?.promotedAlias || name;
|
||||||
const props: Omit<AttributeWithDefinitions, "value"> = { def, name, type, friendlyName };
|
const props: Omit<AttributeWithDefinitions, "value"> = { def, name, type, friendlyName };
|
||||||
|
|
||||||
|
if (attributesToIgnore.includes(name)) continue;
|
||||||
|
|
||||||
if (type === "label") {
|
if (type === "label") {
|
||||||
const labels = note.getLabels(name);
|
const labels = note.getLabels(name);
|
||||||
for (const label of labels) {
|
for (const label of labels) {
|
||||||
@@ -112,8 +114,6 @@ function getAttributesWithDefinitions(note: FNote, attributesToIgnore: string[]
|
|||||||
result.push({ ...props, value: relation.value } );
|
result.push({ ...props, value: relation.value } );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attributesToIgnore.includes(name)) continue;
|
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user