summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/src
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-01-19 17:47:31 +0100
committerLouis (Rebase PR Action) <artonge@users.noreply.github.com>2023-01-26 10:12:23 +0000
commit96002651ce4335781e543d9a3ec6d50cca4b2495 (patch)
tree070ae24b5677f7c417064ac0810184c26a8ac4b6 /apps/files_versions/src
parentfd9937a171c3dc0d8615e113ccc72f699ab2cd78 (diff)
downloadnextcloud-server-96002651ce4335781e543d9a3ec6d50cca4b2495.tar.gz
nextcloud-server-96002651ce4335781e543d9a3ec6d50cca4b2495.zip
Handle undefined label in front-end
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files_versions/src')
-rw-r--r--apps/files_versions/src/components/Version.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/src/components/Version.vue b/apps/files_versions/src/components/Version.vue
index cde2f56edb4..6a9bac977a8 100644
--- a/apps/files_versions/src/components/Version.vue
+++ b/apps/files_versions/src/components/Version.vue
@@ -185,7 +185,7 @@ export default {
*/
versionLabel() {
if (this.isCurrent) {
- if (this.version.label === '') {
+ if (this.version.label === undefined || this.version.label === '') {
return translate('files_versions', 'Current version')
} else {
return `${this.version.label} (${translate('files_versions', 'Current version')})`