Expected Behavior
When submitParameters is omitted in <VGSCollectForm>, there should be no error.
Current Behavior
When submitParameters prop is omitted in <VGSCollectForm>, there's an error when submitting the form.
Possible Solution
Either make submitParameters prop mandatory, or set default value to it, like submitParameters = {}.
Steps to Reproduce (for bugs)
- Remove
submitParameters prop from <VGSCollectForm> component.
- Submit the form.
- See error in console
Uncaught TypeError: Cannot read properties of undefined (reading 'data')
Expected Behavior
When
submitParametersis omitted in<VGSCollectForm>, there should be no error.Current Behavior
When
submitParametersprop is omitted in<VGSCollectForm>, there's an error when submitting the form.Possible Solution
Either make
submitParametersprop mandatory, or set default value to it, likesubmitParameters = {}.Steps to Reproduce (for bugs)
submitParametersprop from<VGSCollectForm>component.Uncaught TypeError: Cannot read properties of undefined (reading 'data')