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
Hello
I've tried upgrade contentful-resolve-response from version 1.1.4 to 1.2.2 and I get an error in console: TypeError: Cannot read property 'type' of undefined
I get response from contentful like that: { "sys": { "type": "Array" }, "total": 1, "skip": 0, "limit": 100, "items": [ { "fields": { "internalTitle": "Page", "slug": "b", "title": "B", "description": "test", "metaTitle": "B", "metaDescription": "" } } ] }
I think the problem is in lines: https://github.com/contentful/contentful-resolve-response/blob/master/index.js#L120
and https://github.com/contentful/contentful-resolve-response/blob/master/index.js#L122
My response responseClone.items doesn't have sys key so it will be undefined.
Can you check it?
In old version, everything works perfectly.
The text was updated successfully, but these errors were encountered:
Hello
I've tried upgrade contentful-resolve-response from version 1.1.4 to 1.2.2 and I get an error in console:
TypeError: Cannot read property 'type' of undefined
I get response from contentful like that:
{ "sys": { "type": "Array" }, "total": 1, "skip": 0, "limit": 100, "items": [ { "fields": { "internalTitle": "Page", "slug": "b", "title": "B", "description": "test", "metaTitle": "B", "metaDescription": "" } } ] }
I think the problem is in lines:
https://github.com/contentful/contentful-resolve-response/blob/master/index.js#L120
and
https://github.com/contentful/contentful-resolve-response/blob/master/index.js#L122
My response responseClone.items doesn't have sys key so it will be undefined.
Can you check it?
In old version, everything works perfectly.
The text was updated successfully, but these errors were encountered: