refactor: nested destructuring
This commit is contained in:
parent
09a35cf10a
commit
d2b73a8942
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue