Skip to content

Commit

Permalink
fix: use correct property for inProgressFormId (#33042)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwhitlock1 authored Nov 15, 2024
1 parent 284eca8 commit cee71e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/platform/forms-system/src/js/containers/FormApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ FormApp.propTypes = {
const mapStateToProps = state => ({
formData: state.form.data,
isLoggedIn: isLoggedIn(state),
inProgressFormId: state.form.loadedData?.metadata?.inProgressFormId,
inProgressFormId: state?.form?.inProgressFormId,
});

export default connect(mapStateToProps)(FormApp);
Expand Down
2 changes: 1 addition & 1 deletion src/platform/forms/save-in-progress/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function saveForm(saveType, formId, formData, version, returnUrl, submission) {
SAVE_STATUSES.success,
savedAt,
json.data.attributes.metadata.expiresAt,
json.data.id,
json.data.attributes.metadata.inProgressFormId,
),
);

Expand Down

0 comments on commit cee71e9

Please sign in to comment.