Merge pull request #53147 from xlejo/fix/files_versions/undefined_restored

This commit is contained in:
John Molakvoæ 2025-05-29 14:13:18 +02:00 committed by GitHub
commit cdcfefc4ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -203,7 +203,7 @@ export default {
try {
await restoreVersion(version)
if (version.label !== '') {
if (version.label) {
showSuccess(t('files_versions', `${version.label} restored`))
} else if (version.mtime === this.initialVersionMtime) {
showSuccess(t('files_versions', 'Initial version restored'))

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long