javascript-kit icon indicating copy to clipboard operation
javascript-kit copied to clipboard

parseFragment not properly initializing a StructuredText field retrieved with fetchLinks

Open levimykel opened this issue 8 years ago • 1 comments

When parsing the fragments of a document link, if the fetchLinks parameter was used on a StructuredText field, it does not properly initialize the field and will log something like the following in the console:

"Fragment type not supported: paragraph"

https://github.com/prismicio/javascript-kit/blob/master/lib/fragments.js#L1180

levimykel avatar Feb 17 '17 12:02 levimykel

It also means that getStructuredText, getText, or get don't work when trying to implement this into a template.

levimykel avatar Jun 29 '17 10:06 levimykel