Skip to content

Commit 5b07f95

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)