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 nextcloud-command committed Sep 4, 2024
1 parent 0f4086c commit bcb536e
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 @@ -96,7 +96,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 bcb536e

Please sign in to comment.