refactor: nested destructuring
This commit is contained in:
@@ -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()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user