From 81e8aec9c885d1f202ab5de25a5ef7a423686f7d Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Thu, 24 Aug 2017 10:06:43 -0600 Subject: [PATCH] Fix import --- .../src/internal-plugins/internal-data-bridge/gatsby-node.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gatsby/src/internal-plugins/internal-data-bridge/gatsby-node.js b/packages/gatsby/src/internal-plugins/internal-data-bridge/gatsby-node.js index b8d5d031b6989..acd650cc7b6bc 100644 --- a/packages/gatsby/src/internal-plugins/internal-data-bridge/gatsby-node.js +++ b/packages/gatsby/src/internal-plugins/internal-data-bridge/gatsby-node.js @@ -6,6 +6,7 @@ const _ = require(`lodash`) const { emitter } = require(`../../redux`) const { boundActionCreators } = require(`../../redux/actions`) +const { getNode } = require(`../../redux`) function transformPackageJson(json) { const transformDeps = deps => @@ -150,6 +151,6 @@ exports.onCreatePage = ({ page, boundActionCreators }) => { // Listen for DELETE_PAGE and delete page nodes. emitter.on(`DELETE_PAGE`, action => { const nodeId = createPageId(action.payload.path) - const node = boundActionCreators.getNode(nodeId) + const node = getNode(nodeId) boundActionCreators.deleteNode(nodeId, node) })