use title instead of name to avoid uuid appearing as labels

This commit is contained in:
dcore94 2023-10-27 16:21:10 +02:00
parent bfea923d4b
commit d374f62ae0
1 changed files with 2 additions and 2 deletions

View File

@ -417,10 +417,10 @@ class D4SStorageTree extends D4SStorageHtmlElement {
data
.filter(item => this.showFiles || item['@class'].includes('FolderItem'))
.forEach(item => {
ul.appendChild(this.createListItem(item.name, item.id, item['@class'], parentId));
ul.appendChild(this.createListItem(item.title, item.id, item['@class'], parentId));
})
} else {
ul.appendChild(this.createListItem(data.displayName ? data.displayName : data.name, data.id, data['@class'], parentId));
ul.appendChild(this.createListItem(data.displayName ? data.displayName : data.title, data.id, data['@class'], parentId));
}
parentElement.appendChild(ul);
}