Fix filemanager for custom apps
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user