mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
promoted attributes widget is now auto-updating, fixes #700
This commit is contained in:
@@ -54,8 +54,9 @@ export default class LoadResults {
|
||||
this.attributes.push({attributeId, sourceId});
|
||||
}
|
||||
|
||||
getAttributes() {
|
||||
getAttributes(sourceId = 'none') {
|
||||
return this.attributes
|
||||
.filter(row => row.sourceId !== sourceId)
|
||||
.map(row => this.treeCache.attributes[row.attributeId])
|
||||
.filter(attr => !!attr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user