Closed leewinter closed 2 weeks ago
Describe the bug Default values in stories sometimes set state to null even when the property is marked as required.
To Reproduce Steps to reproduce the behavior:
defaultValues.customer
OrderForm
null
Expected behavior Don't expect to see this warning on first load of the form.
Screenshots NA
Desktop (please complete the following information):
Additional context Storybook options args have example data so may just be a template issue needing to select one by default?
Resolved in this PR https://github.com/leewinter/type-scaf/pull/9
Describe the bug Default values in stories sometimes set state to null even when the property is marked as required.
To Reproduce Steps to reproduce the behavior:
defaultValues.customer
is marked as required inOrderForm
, but its value isnull
."Expected behavior Don't expect to see this warning on first load of the form.
Screenshots NA
Desktop (please complete the following information):
Additional context Storybook options args have example data so may just be a template issue needing to select one by default?