This commit is contained in:
portree_kid 2020-03-30 23:04:51 +02:00
parent 2d5f2f0063
commit 5be00f012f

View File

@ -8,7 +8,7 @@ const mutations = {
}, },
UPDATE_PARKING: (state, item) => { UPDATE_PARKING: (state, item) => {
const existingItem = state.items.find((i) => i.index === item.index) const existingItem = state.items.find((i) => i.index === item.index)
if (existingItem!==undefined) { if (existingItem !== undefined) {
Object.assign(existingItem, item) Object.assign(existingItem, item)
} }
}, },