Skip to content

Error occurs when submitParameters is omitted #53

@michalraczkowski

Description

@michalraczkowski

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions