Fix access to fileInfo in VersionTab.vue

Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
Louis Chemineau 2023-09-07 22:57:08 +02:00
parent fdf752fac6
commit 687c5aef48
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