openlawteam/openlaw-elements

Fix propTypes runtime error

Closed this issue · 1 comments

When running the app in a React app without Flow, the app will use the exported propTypes, however there is a small error for savedValue for Structure, DatePicker and Text, as reported by @jdville03.

Example:

Warning: Failed prop type: The prop savedValue is marked as required in DatePicker, but its value is undefined.

I suspect this may be an issue for any variable type (not just DatePicker and Text) if used in a Structure type.