Skip to content

Commit

Permalink
Fix formSubmissionKey deleted when not finalized
Browse files Browse the repository at this point in the history
Fixes: AFORM-3926
  • Loading branch information
epi-qang2 committed Jan 29, 2024
1 parent bfc5db2 commit 5bf6d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/@episerver/forms-react/src/components/FormBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const FormBody = (props: FormBodyProps) => {
formSubmitter.doSubmit(model).then((response: FormSubmitResult) => {
//go here, response.success always is true
isSuccess.current = response.success;
isFormFinalized.current = (isProgressiveSubmit.current || isLastStep) && response.success;
isFormFinalized.current = (submitButton?.properties?.finalizeForm || isLastStep) && response.success;
dispatchFunctions.updateSubmissionKey(response.submissionKey);
localFormCache.set(submissionStorageKey, response.submissionKey);

Expand Down

0 comments on commit 5bf6d78

Please sign in to comment.