docs(ComponentProps): prevent err

This commit is contained in:
Benjamin Canac
2024-07-03 14:36:16 +02:00
parent 235556d3e0
commit 5f40773fa4

View File

@@ -6,7 +6,7 @@ const props = defineProps<{
}>()
function getSchemaProps(schema: PropertyMeta['schema']) {
if (!schema || typeof schema === 'string') {
if (!schema || typeof schema === 'string' || !schema.schema) {
return []
}