Commit Graph

10 Commits

Author SHA1 Message Date
alxshelepenok
8b92891329 Upgrade to Gatsby v2 2018-11-09 20:08:48 +03:00
wpioneer
35d5d7c244 New version 2018-01-21 03:03:59 +03:00
ybbarng
d207f68e43
Fixes a crash when a post has no tag
This commit avoids undefined.map() or null.map() is calling.

When there is no tag in a post, there are two cases in frontmatter.

1)
title: title
categories: Technical
...

2)
title: title
tags:
categories: Technical
...

Let's look at `post.node.frontmatter.tags` in both situations.
`FILE1 = /gatsby-node.js`
`FILE2 = /src/components/PostTemplateDetails/index.jsx`

In the first case, it is `undefined` in `FILE1`.
Cheking `undefined` is already implemented at FILE1#126, so undefined.map()
is not called.
But it is `null` in `FILE2#22`
and a crash will be occurred because it tries to run `null.map()`.

In the second case, it is `null` in `FILE1` and `FILE2`.
In this case, there will be two crashes in both files because both codes
try to run `null.map()`.

This commit avoids these crashes.
2017-10-30 23:25:49 +09:00
wpioneer
32534e10e0 fix similar code issues 2017-08-21 01:28:46 +03:00
wpioneer
a2f8738ea6 🔖 Upgrade to Gatsby 1.8.12 2017-08-20 14:43:49 +03:00
Simon Reinsperger
7b8b07b05a refactor: gatsby-browser, gatsby-node
adds .eslintcache to gitignore
2017-03-08 16:53:50 +01:00
wpioneer
e8f183226f Upgrade to Gatsby 0.12.0 2016-07-30 02:05:32 +03:00
wpioneer
cacc5c9cf8 Update gatsby-node 2016-06-07 21:44:26 +03:00
wpioneer
b8fb3c75ee Added vendor prefixes 2016-06-06 18:01:16 +03:00
wpioneer
05ee70daab upgrade to Gatsby 0.11 2016-06-03 02:32:38 +03:00