We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f49d28 commit 083a7beCopy full SHA for 083a7be
src/store.js
@@ -24,9 +24,8 @@ export default new Vuex.Store({
24
},
25
26
UPDATE_EVENT(state, event) {
27
- console.log(event);
28
const eventIndex = state.events.findIndex(e => e.eventId === event.eventId);
29
- console.log(eventIndex);
+
30
if (eventIndex > -1) {
31
state.events.splice(eventIndex, 1, event);
32
}
0 commit comments