From 5aec35cb438de052c2e5730e4d9103bde2e58bb9 Mon Sep 17 00:00:00 2001 From: benweet Date: Sat, 20 Jan 2018 11:24:29 +0000 Subject: [PATCH] Fixed unknown mutation type: data/deleteItem --- src/store/data.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/store/data.js b/src/store/data.js index 3b470925..f860a6bc 100644 --- a/src/store/data.js +++ b/src/store/data.js @@ -115,6 +115,10 @@ export default { // 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); }, + deleteItem(state, id) { + // Only used by localDbSvc to clean itemMap from object moved to localStorage + Vue.delete(state.itemMap, id); + }, }, getters: { workspaces: getter('workspaces'),