revert hacky fix

This commit is contained in:
j3d1 2019-12-23 22:21:21 +01:00
parent ed164c889a
commit 0fdc63cea4

View file

@ -92,7 +92,6 @@ const store = new Vuex.Store({
let file = new File([blob], 'dot.png', blob); let file = new File([blob], 'dot.png', blob);
delete item.dataImage; delete item.dataImage;
item.image = file; item.image = file;
item.cid = item.cid || 1;
var formData = new FormData(); var formData = new FormData();
for ( var key in item ) formData.append(key, item[key]); for ( var key in item ) formData.append(key, item[key]);
const { data } = await axios.post(`/1/${getters.getEventSlug}/item`, formData, { const { data } = await axios.post(`/1/${getters.getEventSlug}/item`, formData, {