Skip to content

Commit

Permalink
use latest formData
Browse files Browse the repository at this point in the history
  • Loading branch information
rhasselle-oddball committed Nov 27, 2024
1 parent 52fabce commit 1f8b7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/forms-system/src/js/containers/FormPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class FormPage extends React.Component {
// Navigate to the next page
onSubmit = ({ formData }) => {
const { form, route, location } = this.props;
let newFormData = form.data;
let newFormData = formData || form.data;

// This makes sure defaulted data on a page with no changes is saved
// Probably safe to do this for regular pages, too, but it hasn’t been
Expand Down

0 comments on commit 1f8b7a5

Please sign in to comment.