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 <[email protected]>
  • Loading branch information
skjnldsv authored and backportbot[bot] committed Sep 4, 2024
1 parent 957d4ad commit 4099bba
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 4099bba

Please sign in to comment.