You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Contentful API, and the include is being used in the request, linked content has the possibility to not have field data if that linked content is in draft/deleted/archived status.
For instance, if there was a Page entry that linked to a Content entry, and the Content entry was in draft and the Page was not, there would be an undefined error for the following: page.fields.content.fields.title. Generated interfaces should enforce type by making fields and content a union type with undefined, where the following is now written: page.fields.content?.fields?.title
The text was updated successfully, but these errors were encountered:
When using the Contentful API, and the
include
is being used in the request, linked content has the possibility to not have field data if that linked content is in draft/deleted/archived status.For instance, if there was a Page entry that linked to a Content entry, and the Content entry was in draft and the Page was not, there would be an undefined error for the following:
page.fields.content.fields.title
. Generated interfaces should enforce type by makingfields
andcontent
a union type withundefined
, where the following is now written:page.fields.content?.fields?.title
The text was updated successfully, but these errors were encountered: