second shitty fix

This commit is contained in:
j3d1 2020-01-01 22:13:09 +01:00
parent ac608117d8
commit 6bcbd59362
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ export default {
item: {}
}),
created() {
this.item = {box: this.$store.state.lastUsed.box || ''};
this.item = {box: this.$store.state.lastUsed.box || '', cid: this.$store.state.lastUsed.cid || ''};
},
methods: {
saveNewItem() {

View file

@ -134,7 +134,7 @@ const store = new Vuex.Store({
commit('removeItem',item);
},
async postItem({ commit, getters }, item) {
commit('updateLastUsed',{box: item.box});
commit('updateLastUsed',{box: item.box, cid: item.cid});
const { data } = await axios.post(`/1/${getters.getEventSlug}/item`, item);
commit('appendItem', data);
}