debug
All checks were successful
Deploy to Server / deploy (push) Successful in 29s

This commit is contained in:
jeremygan2021
2026-03-22 23:33:47 +08:00
parent c22afc236e
commit 709b710d97

View File

@@ -169,11 +169,15 @@ const ProjectSubmission = ({ competitionId, initialValues, onCancel, onSuccess }
const hasFiles = pendingAttachments.length > 0 || pendingCoverImage;
const data = {
let data = {
...values,
competition: competitionId,
};
if (data.cover_image_url && data.cover_image_url.startsWith('data:')) {
delete data.cover_image_url;
}
if (initialValues?.id) {
await updateProject(initialValues.id, data);
if (pendingAttachments.length > 0) {