From 2991ec2e41689ecc5b787576e97a528a7c1a3da9 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Wed, 4 Sep 2024 16:42:18 +0200 Subject: [PATCH] fix(files): undefined displayname for outdated `@nextcloud/files`<3.6.0 apps Signed-off-by: skjnldsv --- apps/files/src/components/FileEntryMixin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts index 83a68bfcf2370..7b0d875c88049 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