From a5452e4b15bb0eca773e3d1de63a92b169ad3b86 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 27 Oct 2025 16:29:31 +0100 Subject: [PATCH] Fix filemanager for custom apps --- dashboard/src/components/FolderView.vue | 2 +- dashboard/src/models/DirectoryModel.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/src/components/FolderView.vue b/dashboard/src/components/FolderView.vue index e76f3dab6..1d98534f0 100644 --- a/dashboard/src/components/FolderView.vue +++ b/dashboard/src/components/FolderView.vue @@ -443,7 +443,7 @@ onMounted(async () => { } appLink.value = `https://${result.body.fqdn}`; - title.value = `${result.body.label || result.body.fqdn} (${result.body.manifest.title})`; + title.value = `${result.body.label || result.body.fqdn} ` + (result.body.manifest ? `(${result.body.manifest.title})` : ''); } else if (type === 'volume') { let error, result; try { diff --git a/dashboard/src/models/DirectoryModel.js b/dashboard/src/models/DirectoryModel.js index f01306875..015b00bd3 100644 --- a/dashboard/src/models/DirectoryModel.js +++ b/dashboard/src/models/DirectoryModel.js @@ -41,7 +41,7 @@ export function createDirectoryModel(origin, accessToken, api) { } if (error || result.status !== 200) { - if (error.status === 404) return []; + if (result.status === 404) return []; console.error('Failed to list files', error || result.status); return [];