diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-09-04 16:42:18 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-10-25 08:20:27 +0200 |
commit | 8711b40b96305df02474851a86059fe6d712f7de (patch) | |
tree | 00b1dc2e86aabffb73473b3bb5191b6f1f8004b1 /apps | |
parent | c1e7d80db1d41eefe1ce2d7f09dc76e06c8ca3f6 (diff) | |
download | nextcloud-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.ts | 3 |
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 |