prismicio / javascript-kit

Development kit for the Javascript language
https://developers.prismic.io
106 stars 69 forks source link

Fragment type check #144

Closed krunalatkaplan closed 7 years ago

krunalatkaplan commented 7 years ago

Our application was working fine up until yesterday, but it has started getting the fragment type = null if the value of the field is not defined in the writing room. this change will ensure that all those fields will be skipped.

srenault commented 7 years ago

Many thanks for your PR. Before we merge it, I want to investigate with the team when and why the API response changed.

petetnt commented 7 years ago

FWIW we ran into this issue after the Repeatable Slices beta was added to our repo but didn't upgrade our SDK to match. It was fixed after upgrading to ^3.5.0.