mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(files): undefined displayname for outdated @nextcloud/files<3.6.0 apps
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
parent
09fef8f0ec
commit
1ece5b975d
1 changed files with 2 additions and 1 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue