This commit is contained in:
@@ -169,10 +169,14 @@ const ProjectSubmission = ({ competitionId, initialValues, onCancel, onSuccess }
|
|||||||
|
|
||||||
const hasFiles = pendingAttachments.length > 0 || pendingCoverImage;
|
const hasFiles = pendingAttachments.length > 0 || pendingCoverImage;
|
||||||
|
|
||||||
const data = {
|
let data = {
|
||||||
...values,
|
...values,
|
||||||
competition: competitionId,
|
competition: competitionId,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (data.cover_image_url && data.cover_image_url.startsWith('data:')) {
|
||||||
|
delete data.cover_image_url;
|
||||||
|
}
|
||||||
|
|
||||||
if (initialValues?.id) {
|
if (initialValues?.id) {
|
||||||
await updateProject(initialValues.id, data);
|
await updateProject(initialValues.id, data);
|
||||||
|
|||||||
Reference in New Issue
Block a user