@sanity/schema 5.0.0-next-major.12 → 5.0.0-next-major.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/_internal.js CHANGED
@@ -2359,7 +2359,7 @@ function extractSchema(schemaDef, extractOptions = {}) {
2359
2359
  if (inlineFields.has(schemaType.type))
2360
2360
  return { type: "inline", name: schemaType.type.name };
2361
2361
  if (schemaType.type?.name && sortedSchemaTypeNames.indexOf(schemaType.type?.name) > -1)
2362
- return { type: "inline", name: schemaType.name };
2362
+ return { type: "inline", name: schemaType.type?.name };
2363
2363
  if (isStringType(schemaType))
2364
2364
  return createStringTypeNodeDefintion(schemaType);
2365
2365
  if (isNumberType(schemaType))