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: account for letter casing while creating new collection
jamesgeorge00788fc45975f3d
diff --git a/store/postwoman.js b/store/postwoman.jsindex 09f13178f..a44a07bc0 100644--- a/store/postwoman.js+++ b/store/postwoman.js@@ -112,7 +112,7 @@ export const mutations = {addNewCollection({ collections }, collection) {const { name } = collection;- const duplicateCollection = collections.some(item => item.name === name);+ const duplicateCollection = collections.some(item => item.name.toLowerCase() === name.toLowerCase());if (duplicateCollection) {this.$toast.info("Duplicate collection");return;