Skip to content

Commit

Permalink
Ignore nodes with no URL field
Browse files Browse the repository at this point in the history
Signed-off-by: David Beckley <beckl.ds@gmail.com>
  • Loading branch information
cassiebeckley committed Apr 11, 2018
1 parent d169097 commit 812eaa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-transformer-screenshot/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ exports.onPreBootstrap = (
exports.onCreateNode = async ({ node, boundActionCreators, store, cache }) => {
const { createNode, createParentChildLink } = boundActionCreators

// We only care about parsed sites.yaml files
if (node.internal.type !== `SitesYaml`) {
// We only care about parsed sites.yaml files with a url field
if (node.internal.type !== `SitesYaml` || !node.url) {
return
}

Expand Down

0 comments on commit 812eaa6

Please sign in to comment.