Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse form can break when no field type is passed. #283

Open
allanchau opened this issue Feb 25, 2020 · 0 comments
Open

Parse form can break when no field type is passed. #283

allanchau opened this issue Feb 25, 2020 · 0 comments

Comments

@allanchau
Copy link
Contributor

Describe the bug
When using multiple checkboxes in a custom form, this function will error with Expected field {field} is type of {field type}, but found type of {found field type}.

To Reproduce
Steps to reproduce the behavior:

  1. Add multiple checkboxes to a custom form.
  2. Post the form.

Expected behavior
The form should be parsed correctly.

Additional context
We need to update /Users/allanchau/Developer/idearium/linz/lib/api/formtools/parse-form.js to be a bit smarter and not just default to a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant