Cope with empty result

This commit is contained in:
D. Berge
2023-11-02 22:55:28 +01:00
parent 544c4ead76
commit beeba966dd

View File

@@ -115,7 +115,7 @@ export default {
const url = `/files/${item? item.path : (this.root || this.path || "")}`;
const list = await this.api([url]);
this.loading = false;
const items = list.map(item => {
const items = list?.map(item => {
if (item["Content-Type"] == "inode/directory") {
item.children = [];
}