promoted attributes widget is now auto-updating, fixes #700

This commit is contained in:
zadam
2020-06-08 00:29:52 +02:00
parent 11b73b79ed
commit 2c609e8136
4 changed files with 14 additions and 8 deletions

View File

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