fix: validation for empty collection names

This commit is contained in:
jamesgeorge007
2020-01-23 14:09:36 +05:30
parent 5119505475
commit 4ad4bad295

View File

@@ -56,6 +56,9 @@ export default {
},
methods: {
addNewCollection() {
if (this.$data.name !== undefined) {
return;
}
this.$store.commit("postwoman/addNewCollection", {
name: this.$data.name
});