Skip to content

Commit

Permalink
Merge pull request #47753 from nextcloud/backport/47745/stable30
Browse files Browse the repository at this point in the history
[stable30] fix(files): undefined displayname for outdated `@nextcloud/files`<3.6.0 apps
  • Loading branch information
AndyScherzinger authored Sep 5, 2024
2 parents 5b55f6f + 03a22f9 commit 9f96455
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 9f96455

Please sign in to comment.