Skip to content

Allow content type to have empty reference field#1

Merged
hiteshbal91 merged 1 commit intocontentstack:developfrom
andrewstaker:allow-empty-fields
Dec 19, 2018
Merged

Allow content type to have empty reference field#1
hiteshbal91 merged 1 commit intocontentstack:developfrom
andrewstaker:allow-empty-fields

Conversation

@andrewstaker
Copy link
Copy Markdown
Contributor

We were having an issue where empty reference fields were causing Gatsby to crash.

This little fix just prevents running normalizeReferenceField when the value for an entry is null

Copy link
Copy Markdown

@saussayjesica saussayjesica left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hiteshbal91
Copy link
Copy Markdown
Contributor

Checking.

@hiteshbal91 hiteshbal91 merged commit e7e3315 into contentstack:develop Dec 19, 2018
@hiteshbal91
Copy link
Copy Markdown
Contributor

Thank you @andrewstaker for fix. We have merged your pull request into repository and pushed it on npm as well.

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