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 committed Oct 25, 2024
1 parent c1e7d80 commit 8711b40
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 @@ -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
Expand Down

0 comments on commit 8711b40

Please sign in to comment.