Merge pull request #40340 from nextcloud/artonge/fix/fileInfo_access

Fix access to fileInfo in VersionTab.vue
This commit is contained in:
Louis 2023-09-08 18:43:52 +02:00 committed by GitHub
commit ebf2422508
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -256,7 +256,7 @@ export default {
// We also point to the original filename if the version is the current one.
const versions = this.versions.map(version => ({
...version,
filename: version.mtime === this.fileInfo.mtime ? path.join('files', getCurrentUser()?.uid ?? '', fileInfo.path, fileInfo.name) : version.filename,
filename: version.mtime === this.fileInfo.mtime ? path.join('files', getCurrentUser()?.uid ?? '', this.fileInfo.path, this.fileInfo.name) : version.filename,
hasPreview: false,
previewUrl: undefined,
}))

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long