From 394bf9ee83fe7d3ff6556a29a729af82ae82475a Mon Sep 17 00:00:00 2001 From: jedi Date: Mon, 23 Dec 2019 12:38:10 +0100 Subject: [PATCH] hacky cid fix --- src/store/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/index.js b/src/store/index.js index 8a8b229..90572f0 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -84,6 +84,7 @@ const store = new Vuex.Store({ let file = new File([blob], 'dot.png', blob); delete item.dataImage; item.image = file; + item.cid = item.cid || 1; var formData = new FormData(); for ( var key in item ) formData.append(key, item[key]); const { data } = await axios.post(`/1/${getters.getEventSlug}/item`, formData, {