mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
don't short child: promoted attributes
This commit is contained in:
@@ -226,7 +226,10 @@ async function loadAttributes() {
|
||||
|
||||
const attributes = await server.get('notes/' + noteId + '/attributes');
|
||||
|
||||
const promoted = attributes.filter(attr => (attr.type === 'label-definition' || attr.type === 'relation-definition') && attr.value.isPromoted);
|
||||
const promoted = attributes.filter(attr =>
|
||||
(attr.type === 'label-definition' || attr.type === 'relation-definition')
|
||||
&& !attr.name.startsWith("child:")
|
||||
&& attr.value.isPromoted);
|
||||
|
||||
let idx = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user