aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-09-04 16:42:18 +0200
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-10-25 08:20:27 +0200
commit8711b40b96305df02474851a86059fe6d712f7de (patch)
tree00b1dc2e86aabffb73473b3bb5191b6f1f8004b1 /apps
parentc1e7d80db1d41eefe1ce2d7f09dc76e06c8ca3f6 (diff)
downloadnextcloud-server-8711b40b96305df02474851a86059fe6d712f7de.tar.gz
nextcloud-server-8711b40b96305df02474851a86059fe6d712f7de.zip
fix(files): undefined displayname for outdated `@nextcloud/files`<3.6.0 apps
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/src/components/FileEntryMixin.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts
index 83a68bfcf23..7b0d875c880 100644
--- a/apps/files/src/components/FileEntryMixin.ts
+++ b/apps/files/src/components/FileEntryMixin.ts
@@ -97,7 +97,8 @@ export default defineComponent({
* Either the nodes filename or a custom display name (e.g. for shares)
*/
displayName() {
- return this.source.displayname
+ // basename fallback needed for apps using old `@nextcloud/files` prior 3.6.0
+ return this.source.displayname || this.source.basename
},
/**
* The display name without extension