Skip to content

Commit

Permalink
guard against req.context not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri authored and gziolo committed Mar 14, 2017
1 parent a0f08d5 commit 2835d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ module.exports = function() {
req.context = Object.assign( {}, req.context, { chunk: section.name } );
}

if ( section.secondary ) {
if ( section.secondary && req.context ) {
req.context.hasSecondary = true;
}

Expand Down

0 comments on commit 2835d36

Please sign in to comment.