refactor: use shorthand version

This commit is contained in:
jamesgeorge007
2020-01-23 14:10:26 +05:30
parent 4ad4bad295
commit 5481c28e4b

View File

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