refactor: nested destructuring
This commit is contained in:
@@ -139,8 +139,8 @@ export const mutations = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
editCollection({ collections }, payload) {
|
editCollection({ collections }, payload) {
|
||||||
const { collection, collectionIndex } = payload;
|
const { collection: { name }, collectionIndex } = payload;
|
||||||
const { name } = collection;
|
// const { name } = collection;
|
||||||
const duplicateCollection = collections.some(
|
const duplicateCollection = collections.some(
|
||||||
item => item.name.toLowerCase() === name.toLowerCase()
|
item => item.name.toLowerCase() === name.toLowerCase()
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user