Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

refactor: use shorthand version

jamesgeorge0075481c28e4bbe
diff --git a/components/collections/addCollection.vue b/components/collections/addCollection.vue
index 7437e7999..9f0cc8139 100644
--- a/components/collections/addCollection.vue
+++ b/components/collections/addCollection.vue
@@ -56,7 +56,7 @@ export default {
},
methods: {
addNewCollection() {
- if (this.$data.name !== undefined) {
+ if (!this.$data.name) {
return;
}
this.$store.commit("postwoman/addNewCollection", {