diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_versions/src/components/Version.vue | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/files_versions/src/components/Version.vue b/apps/files_versions/src/components/Version.vue index 51ef3ef61a0..b5c4cbf2c4c 100644 --- a/apps/files_versions/src/components/Version.vue +++ b/apps/files_versions/src/components/Version.vue @@ -184,19 +184,21 @@ export default { * @return {string} */ versionLabel() { + const label = this.version.label ?? '' + if (this.isCurrent) { - if (this.version.label === undefined || this.version.label === '') { + if (label === '') { return translate('files_versions', 'Current version') } else { - return `${this.version.label} (${translate('files_versions', 'Current version')})` + return `${label} (${translate('files_versions', 'Current version')})` } } - if (this.isFirstVersion && this.version.label === '') { + if (this.isFirstVersion && label === '') { return translate('files_versions', 'Initial version') } - return this.version.label + return label }, /** |