mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 03:10:42 +01:00
docs(ComponentProps): prevent err
This commit is contained in:
@@ -6,7 +6,7 @@ const props = defineProps<{
|
|||||||
}>()
|
}>()
|
||||||
|
|
||||||
function getSchemaProps(schema: PropertyMeta['schema']) {
|
function getSchemaProps(schema: PropertyMeta['schema']) {
|
||||||
if (!schema || typeof schema === 'string') {
|
if (!schema || typeof schema === 'string' || !schema.schema) {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user