Limenius / liform-react

Generate forms from JSON Schema to use with React (& redux-form)
https://limenius.github.io/liform-react/
MIT License
174 stars 40 forks source link

Question: How to avoid getting thrown error when delete button removes last item of `minItems`? #25

Closed nottoseethesun closed 7 years ago

nottoseethesun commented 7 years ago

In an array with minItems of 1, I get a raw thrown js error when deleting the sole item. Is there a way to ensure that this is handled by the regular validation?

nacmartin commented 7 years ago

This should be fixed now. There was a problem with adapting the errors from the validator to what redux-form expects.