Skip to content

Commit 5b07f95

Browse files
xlejobackportbot[bot]
authored andcommitted
fix(files_versions): "undefined restored" on restore
Signed-off-by: Alejo <xlejo@protonmail.com>
1 parent b27aa78 commit 5b07f95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_versions/src/views/VersionTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export default {
199199
200200
try {
201201
await restoreVersion(version)
202-
if (version.label !== '') {
202+
if (version.label) {
203203
showSuccess(t('files_versions', `${version.label} restored`))
204204
} else if (version.mtime === this.initialVersionMtime) {
205205
showSuccess(t('files_versions', 'Initial version restored'))

0 commit comments

Comments
 (0)