Skip to content

Commit

Permalink
Merge pull request #47752 from nextcloud/backport/47745/master
Browse files Browse the repository at this point in the history
[master] fix(files): undefined displayname for outdated `@nextcloud/files`<3.6.0 apps
  • Loading branch information
AndyScherzinger authored Sep 4, 2024
2 parents 09fef8f + c2ed0e3 commit 530e1b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
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
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit 530e1b9

Please sign in to comment.