fix: validation for empty collection names
This commit is contained in:
@@ -56,6 +56,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
addNewCollection() {
|
addNewCollection() {
|
||||||
|
if (this.$data.name !== undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$store.commit("postwoman/addNewCollection", {
|
this.$store.commit("postwoman/addNewCollection", {
|
||||||
name: this.$data.name
|
name: this.$data.name
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user