fixed update endpoint call

This commit is contained in:
Daniel Klamt 2019-12-22 23:21:23 +01:00
parent 90b9d63bb5
commit fde9babce5

View file

@ -76,7 +76,7 @@ const store = new Vuex.Store({
commit('replaceBoxes', data); commit('replaceBoxes', data);
}, },
async updateItem({ commit, getters }, item) { async updateItem({ commit, getters }, item) {
const { data } = await axios.put(`/1/${getters.getEventSlug}/item/${item.iid}`, item); const { data } = await axios.put(`/1/${getters.getEventSlug}/item/${item.uid}`, item);
commit('updateItem', data); commit('updateItem', data);
}, },
async postItem({ commit, getters }, item) { async postItem({ commit, getters }, item) {