Fixed unknown mutation type: data/deleteItem
This commit is contained in:
parent
cd97855c87
commit
5aec35cb43
@ -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'),
|
||||||
|
Loading…
Reference in New Issue
Block a user