move cover image stuff to its own concern and add processing

This commit is contained in:
2458773093
2019-07-17 21:35:40 +03:00
parent ea1378ada7
commit db5a85a657
3 changed files with 35 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ export const create = (title, description, coverImage, routerHistory) => (dispat
const formData = new FormData();
formData.append('title', title);
formData.append('description', description);
debugger;
if (coverImage !== null) {
formData.append('cover_image', coverImage);
}