fix: default value on legacy dropdown component (#10526)

This commit is contained in:
vjaris42 2024-07-31 15:41:47 +05:30 committed by GitHub
parent 0526d57c0c
commit d3fce7f59b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ export const generateSchemaFromValidationDefinition = (definition, recursionDept
}
case 'union': {
schema = union(
definition.schemas?.map((subSchema) => generateSchemaFromValidationDefinition(subSchema, recursionDepth))
definition.schemas?.map((subSchema) => generateSchemaFromValidationDefinition(subSchema, recursionDepth + 1))
);
break;
}