File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/projects/create/components Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -205,9 +205,12 @@ class ProjectBasicDetailsForm extends Component {
205205 this . setState ( { canSubmit : false } )
206206 }
207207
208- submit ( model ) {
208+ submit ( /* model */ ) {
209+ // we cannot use `model` provided by Formzy because in the `previousStepVisibility==none` mode
210+ // some parts of the form are hidden, so Formzy thinks we don't have them
211+ // instead we use this.props.dirtyProject which contains the current project data
209212 this . setState ( { isSaving : true } )
210- const modelWithoutHiddenValues = removeValuesOfHiddenSteps ( this . state . template , model )
213+ const modelWithoutHiddenValues = removeValuesOfHiddenSteps ( this . state . template , this . props . dirtyProject )
211214 this . props . submitHandler ( modelWithoutHiddenValues )
212215 }
213216
You can’t perform that action at this time.
0 commit comments