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

fix(gatsby-plugin-cms): null cms nodes were preventing stores from building #921

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

icazevedo
Copy link
Contributor

What's the purpose of this pull request?

This PR fixes stores breaking the build when remote nodes were null. We observed this can occur when a page of type Institutional Page is published with no sections on it.

The CMS team will discuss it to see if that's the API format they intend to keep or if they will change the null value to a page object with empty/null fields when that happens.

How it works?

I just added a filter for null/undefined values

@icazevedo icazevedo self-assigned this Aug 26, 2021
@icazevedo icazevedo requested a review from a team as a code owner August 26, 2021 18:31
@netlify
Copy link

netlify bot commented Aug 26, 2021

✔️ Deploy Preview for storeui ready!

🔨 Explore the source changes: cee6a13

🔍 Inspect the deploy log: https://app.netlify.com/sites/storeui/deploys/6127de18992def000899bc1b

😎 Browse the preview: https://deploy-preview-921--storeui.netlify.app

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit cee6a13:

Sandbox Source
Store UI Typescript Configuration

@icazevedo icazevedo merged commit 0270037 into master Aug 26, 2021
@icazevedo icazevedo deleted the fix/possibly-null-cms-remote-node branch August 26, 2021 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants