Skip to content

Commit

Permalink
Fix source-drupal plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed May 6, 2017
1 parent 43a3774 commit 8367110
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/gatsby-source-drupal/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ exports.sourceNodes = async (
console.time(`fetch Drupal data`)
console.log(`Starting to fetch data from Drupal`)

const lastFetched = store.getState().status[`gatsby-source-drupal`]
.lastFetched
const lastFetched = store.getState().status.sourcePlugins[
`gatsby-source-drupal`
].lastFetched

let url
if (lastFetched) {
Expand Down

0 comments on commit 8367110

Please sign in to comment.