Skip to content

Commit

Permalink
fix: fix builds without gatsby-config #8917 (#9256)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghardin137 authored and pieh committed Oct 19, 2018
1 parent 875b19c commit 27fcc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/bootstrap/index.js
Expand Up @@ -73,7 +73,7 @@ module.exports = async (args: BootstrapArgs) => {
)

// theme gatsby configs can be functions or objects
if (config.__experimentalThemes) {
if (config && config.__experimentalThemes) {
const themesConfig = await Promise.mapSeries(
config.__experimentalThemes,
async ([themeName, themeConfig]) => {
Expand Down

0 comments on commit 27fcc4d

Please sign in to comment.