Skip to content

Commit

Permalink
fix(gatsby-plugin-create-client-paths): don't process pages that alre…
Browse files Browse the repository at this point in the history
…ady use matchPath (#9220)
  • Loading branch information
i8ramin authored and pieh committed Oct 18, 2018
1 parent d98cc78 commit 6951db0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -15,7 +15,7 @@ exports.onCreatePage = ({ page, store, actions }, { prefixes }) => {
return new Promise(resolve => {
// Don't set matchPath again if it's already been set.
if (page.matchPath || page.path.match(/dev-404-page/)) {
resolve()
return resolve()
}

prefixes.some(prefix => {
Expand Down

0 comments on commit 6951db0

Please sign in to comment.