fix: validation for empty collection names
This commit is contained in:
parent
5119505475
commit
4ad4bad295
1 changed files with 3 additions and 0 deletions
|
|
@ -56,6 +56,9 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
addNewCollection() {
|
||||
if (this.$data.name !== undefined) {
|
||||
return;
|
||||
}
|
||||
this.$store.commit("postwoman/addNewCollection", {
|
||||
name: this.$data.name
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue