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
As it is, it does not allow a defaultValue of null.
This is the (simplified) email component schema, which is multiple capable:
constbuildDefaultValueSchema=(intl: IntlShape)=>{constemailSchema=z.string().email().optional();// case for when component.multiple=falseconstsingleValueSchema=z.object({multiple: z.literal(false)}).and(z.object({defaultValue: emailSchema}));// case for when component.multiple=trueconstmultipleValueSchema=z.object({multiple: z.literal(true)}).and(z.object({defaultValue: emailSchema.array()}));returnsingleValueSchema.or(multipleValueSchema);};constschema: EditSchema=({intl})=>buildCommonSchema(intl).and(buildDefaultValueSchema(intl));exportdefaultschema;
Similarly, defaultValue shouldn't accept null (or [null, ...]), but it does.
I wasn't really able to reproduce (see playground), so I suspect this is an (other) issue with the formik adapter library
The text was updated successfully, but these errors were encountered:
The following is the (simplified)
cosignv2
component schema:As it is, it does not allow a
defaultValue
ofnull
.This is the (simplified)
email
component schema, which is multiple capable:Similarly,
defaultValue
shouldn't acceptnull
(or[null, ...]
), but it does.I wasn't really able to reproduce (see playground), so I suspect this is an (other) issue with the formik adapter library
The text was updated successfully, but these errors were encountered: