Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize fields you get from kentico-cloud-delivery #7

Closed
petrsvihlik opened this issue Oct 10, 2018 · 0 comments
Closed

Normalize fields you get from kentico-cloud-delivery #7

petrsvihlik opened this issue Oct 10, 2018 · 0 comments
Labels
bug Something isn't working groomed

Comments

@petrsvihlik
Copy link
Contributor

Motivation

url field that is missing is instance of TextField class ( https://github.com/Enngage/kentico-cloud-js/blob/94ce81548f167530c9376e7a852ac733a708e85b/packages/delivery/lib/fields/field-types.ts#L8-L32 ), which gatsby can't handle first time it sees it. But it works on second try because after serializing data to cache and deserializing it again we get plain object with properties which gatsby can handle

Proposed solution

since the objects are coming from your client, so for now you should probably convert those to objects in the plugin.

Additional context

@petrsvihlik petrsvihlik added bug Something isn't working groomed labels Oct 10, 2018
@JanLenoch JanLenoch mentioned this issue Oct 15, 2018
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working groomed
Projects
None yet
Development

No branches or pull requests

2 participants