fmt
This commit is contained in:
+2
-1
@@ -44,7 +44,8 @@ export async function object<S extends yup.Maybe<yup.AnyObject>>(
|
||||
}
|
||||
} else {
|
||||
// Normal handling of value (for arrays, split by ',')
|
||||
const less_raw = type === 'array' ? (raw.data.length === 0 ? [] : raw.data.split(',')) : raw.data
|
||||
const less_raw =
|
||||
type === 'array' || type === 'tuple' ? (raw.data.length === 0 ? [] : raw.data.split(',')) : raw.data
|
||||
|
||||
value = await generic(less_raw, sub_scheme)
|
||||
if (!value.ok) return value
|
||||
|
||||
Reference in New Issue
Block a user