fix(files_versions): "undefined restored" on restore

Signed-off-by: Alejo <xlejo@protonmail.com>
pull/53147/head
Alejo 2025-05-27 22:54:23 +07:00 committed by skjnldsv
parent 3bdb89c3b2
commit ab11868bb6
1 changed files with 1 additions and 1 deletions

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