Skip to content

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

fix: validation for empty collection names

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