Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: validation for duplicate collections
jamesgeorge0072853a4bbef8e
diff --git a/store/postwoman.js b/store/postwoman.jsindex bf5881268..895464977 100644--- a/store/postwoman.js+++ b/store/postwoman.js@@ -111,6 +111,10 @@ export const mutations = {},addNewCollection({ collections }, collection) {+ const duplicateCollection = collections.some(item => item.name === collection.name)+ if (duplicateCollection) {+ alert('Duplicate collection');+ }collections.push({name: "",folders: [],