added note picto to medium Card responding to note creation on modalCard

This commit is contained in:
2021-03-10 14:54:58 +01:00
parent fbf509a005
commit e0f8b123f9
5 changed files with 38 additions and 10 deletions

View File

@ -52,7 +52,9 @@ export default {
// find the right index
const index = state.items.findIndex(i => i.id === item.id)
// update the array
Vue.set(state.items, index, item)
if (index !== -1) {
Vue.set(state.items, index, item)
}
// console.log("mutation updateItem state.items", state.items)
},
resetItems (state) {