don't short child: promoted attributes

This commit is contained in:
azivner
2018-08-27 13:35:45 +02:00
parent b868990fba
commit 4bc44605fb
2 changed files with 12 additions and 4 deletions

View File

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