fail on trying to rename a version with the empty string
This commit is contained in:
parent
78c3d1c02d
commit
dd52ed39bc
|
@ -200,8 +200,10 @@ export default {
|
||||||
|
|
||||||
// get current version
|
// get current version
|
||||||
var cur = this.get_vcurrent();
|
var cur = this.get_vcurrent();
|
||||||
if( cur.id < 0 )
|
if( cur.id < 0 || this.version.newName.length < 1 ){
|
||||||
|
this.version.edit = false;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var newname = this.version.newName;
|
var newname = this.version.newName;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue