Skip to content

Commit

Permalink
fix(config): handle plugins undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Oct 3, 2022
1 parent 5261aad commit 5b03c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/histoire/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export async function processDefaultConfig (defaultConfig: HistoireConfig, preUs
}

// Apply plugins
for (const plugin of [...defaultConfig.plugins, ...preUserConfig.plugins]) {
for (const plugin of [...defaultConfig.plugins, ...preUserConfig.plugins ?? []]) {
if (plugin.defaultConfig) {
const result = await plugin.defaultConfig(defaultConfig, mode)
if (result) {
Expand Down

0 comments on commit 5b03c05

Please sign in to comment.