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

No tags in post causes TypeError: Cannot read property 'map' of null #205

Closed
dtn-marknorgren opened this issue May 4, 2019 · 0 comments
Closed

Comments

@dtn-marknorgren
Copy link

dtn-marknorgren commented May 4, 2019

Describe the bug
When navigating to a post that has no tags a TypeError occurs.

TypeError: Cannot read property 'map' of null

To Reproduce
Steps to reproduce the behavior:

  1. Create a post with no 'tags' in front matter
  2. run gatsby develop
  3. Navigate to post.
  4. See TypeError

Expected behavior
A post can be viewed without any tags

.

Screenshots
A_Brief_History_of_Typography_-_Blog_by_John_Doe

Desktop (please complete the following information):

  • macOS
  • Chrome Version 74.0.3729.131 (Official Build) (64-bit)
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

No branches or pull requests

2 participants