Skip to content

Commit

Permalink
fix(gatsby-theme-docz): use options from gatsby-config (#665)
Browse files Browse the repository at this point in the history
The gatsby-node `onPreInit` hook passes in two arguments, the _second_ of which is the plugin options.
  • Loading branch information
lettertwo authored and pedronauck committed Mar 12, 2019
1 parent 548f940 commit c694bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/gatsby-theme-docz/src/node/onPreInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const touchTemplateWithPaths = paths => async (filepath, opts) => {
await touch(dest, raw)
}

module.exports = async opts => {
module.exports = async (_, opts) => {
const { paths, ...config } = await parseConfig(opts)
const componentPath = mountComponentPath(paths)
const touchTemplate = touchTemplateWithPaths(paths)
Expand Down

0 comments on commit c694bdf

Please sign in to comment.