Skip to content

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

refactor: nested destructuring

jamesgeorge007d2b73a89420c
diff --git a/store/postwoman.js b/store/postwoman.js
index a0e93faaf..acab67759 100644
--- a/store/postwoman.js
+++ b/store/postwoman.js
@@ -139,8 +139,8 @@ export const mutations = {
},
editCollection({ collections }, payload) {
- const { collection, collectionIndex } = payload;
- const { name } = collection;
+ const { collection: { name }, collectionIndex } = payload;
+ // const { name } = collection;
const duplicateCollection = collections.some(
item => item.name.toLowerCase() === name.toLowerCase()
);