diff --git a/src/rich-text-to-jsx.js b/src/rich-text-to-jsx.js index 3f3276a..d3c9961 100644 --- a/src/rich-text-to-jsx.js +++ b/src/rich-text-to-jsx.js @@ -139,7 +139,10 @@ export function entryNodeToJsx(node, options, key) { const { data, content, nodeType } = node; const { overrides, createElement } = options; - const contentType = get(data, 'target.contentType'); + let contentType = get(data, 'target.contentType'); + if(!contentType) { + contentType = get(data, 'target.sys.contentType.sys.id'); + } if (!contentType) { return unknownNodeToJsx(node, options, key);