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: return for duplicate collection

jamesgeorge007a34acfd0c53b
diff --git a/store/postwoman.js b/store/postwoman.js
index 895464977..dabaf781b 100644
--- a/store/postwoman.js
+++ b/store/postwoman.js
@@ -114,6 +114,7 @@ export const mutations = {
const duplicateCollection = collections.some(item => item.name === collection.name)
if (duplicateCollection) {
alert('Duplicate collection');
+ return;
}
collections.push({
name: "",