diff --git a/web/src/components/Meditor/types.ts b/web/src/components/Meditor/types.ts index c6b0a7fae..5ca93b13f 100644 --- a/web/src/components/Meditor/types.ts +++ b/web/src/components/Meditor/types.ts @@ -65,7 +65,7 @@ export const isJSONSchema = (schema: JSONSchemaUnionType): schema is JSONSchema7 export const isBasicSchema = (schema: JSONSchemaUnionType): schema is BasicSchema => ( isJSONSchema(schema) - && isBasicType(schema.type) + && (isBasicType(schema.type) || schema.type === undefined) ); export const isObjectSchema = (schema: JSONSchemaUnionType): schema is ObjectSchema => (