prismicio / javascript-kit

Development kit for the Javascript language

Home Page:https://developers.prismic.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parseFragment not properly initializing a StructuredText field retrieved with fetchLinks

levimykel opened this issue · 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

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