Fixed unknown mutation type: data/deleteItem

This commit is contained in:
benweet 2018-01-20 11:24:29 +00:00
parent cd97855c87
commit 5aec35cb43

View File

@ -115,6 +115,10 @@ export default {
// Store item in itemMap or lsItemMap if its stored in the localStorage // Store item in itemMap or lsItemMap if its stored in the localStorage
Vue.set(lsItemIdSet.has(item.id) ? state.lsItemMap : state.itemMap, item.id, item); Vue.set(lsItemIdSet.has(item.id) ? state.lsItemMap : state.itemMap, item.id, item);
}, },
deleteItem(state, id) {
// Only used by localDbSvc to clean itemMap from object moved to localStorage
Vue.delete(state.itemMap, id);
},
}, },
getters: { getters: {
workspaces: getter('workspaces'), workspaces: getter('workspaces'),