Skip to content

Commit

Permalink
Resolve issue creating draft on file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle1morel committed Nov 29, 2024
1 parent 61484c1 commit d16c5ee
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ function confirmSubmit(data: GenericObject) {
async function generateActivityId() {
try {
const response = await submissionService.updateDraft({});
const response = await submissionService.updateDraft({
draftId: undefined,
activityId: undefined,
data: {}
});
if (response.data?.activityId && response.data?.draftId) {
syncFormAndRoute(response.data.activityId, response.data.draftId);
return response.data.activityId;
Expand Down

0 comments on commit d16c5ee

Please sign in to comment.