@sanity/schema 6.2.0-next.157 → 6.2.0-next.160

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
@@ -284,7 +284,7 @@ function maybeBlockMarks(schemaType) {
284
284
  const spanType = schemaType.fields?.find(
285
285
  (field) => field.name === "children"
286
286
  )?.type?.of?.find((memberType) => memberType.name === "span");
287
- if (!spanType || !isSpanSchemaType(spanType) || spanType.decorators.length === 0)
287
+ if (!spanType || !isSpanSchemaType(spanType))
288
288
  return;
289
289
  const decorators = convertUnknown(spanType.decorators);
290
290
  return decorators === void 0 ? void 0 : { decorators };