From 359e70fe8395fdd14b66b0a53664c0a98251fe2b Mon Sep 17 00:00:00 2001 From: Jacob Nesbitt Date: Mon, 15 Jul 2024 12:43:56 -0400 Subject: [PATCH] Remove redundant check against type field --- web/src/components/Meditor/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/Meditor/types.ts b/web/src/components/Meditor/types.ts index 5ca93b13f..0910a98c2 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) || schema.type === undefined) + && (isBasicType(schema.type)) ); export const isObjectSchema = (schema: JSONSchemaUnionType): schema is ObjectSchema => (