We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71c60cb commit 431fc71Copy full SHA for 431fc71
src/components/SchemaRow/TopLevelSchemaRow.tsx
@@ -93,7 +93,7 @@ export const TopLevelSchemaRow = ({
93
}
94
95
if (isComplexArray(schemaNode) && isPureObjectNode(schemaNode.children[0])) {
96
- const validations = getValidationsFromSchema(schemaNode);
+ const validations = isRegularNode(schemaNode) ? getValidationsFromSchema(schemaNode) : {};
97
return (
98
<>
99
<ScrollCheck />
@@ -105,7 +105,7 @@ export const TopLevelSchemaRow = ({
105
106
{!isEmpty(validations) && (
107
<Box fontSize="sm" mb={1} mt={-2}>
108
- <Validations validations={isRegularNode(schemaNode) ? getValidationsFromSchema(schemaNode) : {}} />
+ <Validations validations={validations} />
109
</Box>
110
)}
111
0 commit comments