refactor: use shorthand version
This commit is contained in:
parent
4ad4bad295
commit
5481c28e4b
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
addNewCollection() {
|
||||
if (this.$data.name !== undefined) {
|
||||
if (!this.$data.name) {
|
||||
return;
|
||||
}
|
||||
this.$store.commit("postwoman/addNewCollection", {
|
||||
|
|
|
|||
Loading…
Reference in a new issue