Skip to content

Commit

Permalink
fixed post category check
Browse files Browse the repository at this point in the history
  • Loading branch information
lilianchisca committed Jan 30, 2020
1 parent e214f1c commit 67d702c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gatsby/node/createPosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module.exports = async ({ actions, graphql, reporter }) => {
const category =
post.categories &&
post.categories.nodes.filter(({ name }) => name !== `Featured`)
.length > 0
? post.categories.nodes.filter(({ name }) => name !== `Featured`)[0]
.name
: ``
Expand Down

0 comments on commit 67d702c

Please sign in to comment.