diff options
author | Louis Chemineau <louis@chmn.me> | 2023-01-19 17:47:31 +0100 |
---|---|---|
committer | Louis (Rebase PR Action) <artonge@users.noreply.github.com> | 2023-01-26 10:12:23 +0000 |
commit | 96002651ce4335781e543d9a3ec6d50cca4b2495 (patch) | |
tree | 070ae24b5677f7c417064ac0810184c26a8ac4b6 /apps/files_versions/src | |
parent | fd9937a171c3dc0d8615e113ccc72f699ab2cd78 (diff) | |
download | nextcloud-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.vue | 2 |
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')})` |