Skip to content

Commit

Permalink
DELETE_PAGE action use component not componentPath
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Mar 15, 2019
1 parent c299ae6 commit 36bda2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/gatsby/src/redux/reducers/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ module.exports = (state = new Map(), action) => {
return state
}
case `DELETE_PAGE`: {
action.payload.componentPath = normalize(action.payload.componentPath)
const service = services.get(action.payload.componentPath)
const service = services.get(normalize(action.payload.component))
service.send({
type: `DELETE_PAGE`,
page: action.payload,
Expand Down

0 comments on commit 36bda2e

Please sign in to comment.