From dd52ed39bc4331536d3583aa2f1088764adfaf2b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 9 May 2018 17:45:52 +0200 Subject: [PATCH] fail on trying to rename a version with the empty string --- webpack/vue/header.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack/vue/header.vue b/webpack/vue/header.vue index bb45765..7f861a7 100644 --- a/webpack/vue/header.vue +++ b/webpack/vue/header.vue @@ -200,8 +200,10 @@ export default { // get current version var cur = this.get_vcurrent(); - if( cur.id < 0 ) + if( cur.id < 0 || this.version.newName.length < 1 ){ + this.version.edit = false; return; + } var newname = this.version.newName;