Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Aug 24, 2017
1 parent a2972a2 commit 81e8aec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down Expand Up @@ -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)
})

0 comments on commit 81e8aec

Please sign in to comment.