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: prefer destructuring approach
jamesgeorge007fcdf93c5e556
diff --git a/store/postwoman.js b/store/postwoman.jsindex dabaf781b..df7399d31 100644--- a/store/postwoman.js+++ b/store/postwoman.js@@ -111,7 +111,8 @@ export const mutations = {},addNewCollection({ collections }, collection) {- const duplicateCollection = collections.some(item => item.name === collection.name)+ const { name } = collection+ const duplicateCollection = collections.some(item => item.name === name)if (duplicateCollection) {alert('Duplicate collection');return;