From d2b73a89420cbbb64d1720f7433252db5952509a Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Thu, 20 Feb 2020 09:45:19 +0530 Subject: [PATCH] refactor: nested destructuring --- store/postwoman.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() );