diff --git a/src/core/theme.js b/src/core/theme.js index 01a52f7..06d153b 100644 --- a/src/core/theme.js +++ b/src/core/theme.js @@ -152,7 +152,7 @@ Definition of the Theme class. .forEach(function( cssf ) { // For each CSS file, get its corresponding HTML file var idx = _.findIndex(fmts, function( fmt ) { - return fmt.pre === cssf.pre && fmt.ext === 'html'; + return fmt && fmt.pre === cssf.pre && fmt.ext === 'html'; }); cssf.action = null; fmts[ idx ].css = cssf.data;