🐛 Hotfix: Broken toast and edit/save operations

This commit is contained in:
Liyas Thomas
2020-03-19 16:18:52 +05:30
parent d95c53bbb6
commit 3b2934d4ae
3 changed files with 4 additions and 6 deletions

View File

@@ -218,10 +218,8 @@ export const mutations = {
},
editCollection({ collections }, payload) {
const {
collection: { name },
collectionIndex,
} = payload
const { collection, collectionIndex } = payload
const { name } = collection
const duplicateCollection = collections.some(
item => item.name.toLowerCase() === name.toLowerCase()
)