From 2393b855ab5d9b406aeb24972ff2372b1539e603 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 8681e9c3cb232..f2a6f89cf22e3 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -80,7 +80,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