Skip to content

Commit

Permalink
fix(files): undefined displayname for outdated @nextcloud/files<3.6…
Browse files Browse the repository at this point in the history
….0 apps

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv authored and AndyScherzinger committed Sep 5, 2024
1 parent 0cc6d2e commit 2393b85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files/src/components/FileEntryMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2393b85

Please sign in to comment.