You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Checkbox checked={data || ''} ... results in a type error when data is undefined.
Exception:
Warning: Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.
in ForwardRef(SwitchBase) (created by Context.Consumer)
in WithFormControlContext(ForwardRef(SwitchBase)) (created by WithStyles(WithFormControlContext(ForwardRef(SwitchBase))))
in WithStyles(WithFormControlContext(ForwardRef(SwitchBase))) (created by ForwardRef(Checkbox))
in ForwardRef(Checkbox) (created by WithStyles(ForwardRef(Checkbox)))
Should be: <Checkbox checked={data} ...
... or an explicit check for undefined on values of data that are not boolean.
The text was updated successfully, but these errors were encountered:
<Checkbox checked={data || ''} ...
results in a type error when data isundefined
.Exception:
Should be:
<Checkbox checked={data} ...
... or an explicit check for
undefined
on values ofdata
that are not boolean.The text was updated successfully, but these errors were encountered: