From bcb536e04d359a34aab646750493d0433e902062 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 42a294556804d..6806af6fadca1 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -96,7 +96,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