multiple values are valid (#24050)

fixes: #24032
This commit is contained in:
Erik Jan de Wit 2023-10-19 02:33:44 +02:00 committed by GitHub
parent 8a64ee580f
commit a2dd0f31c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ export const toUpperCase = <T extends string>(name: T) =>
const isAttributesObject = (value: any) => {
return (
Object.values(value).filter(
(value) => Array.isArray(value) && value.length === 1,
(value) => Array.isArray(value) && value.length >= 1,
).length !== 0
);
};