Merge pull request #47752 from nextcloud/backport/47745/master

[master] fix(files): undefined displayname for outdated `@nextcloud/files`<3.6.0 apps
pull/47761/head
Andy Scherzinger 2024-09-05 00:20:15 +07:00 committed by GitHub
commit 530e1b9828
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long