diff --git a/node_modules/frontdoor/lib/section.js b/node_modules/frontdoor/lib/section.js index 69c84e6c..0aa98a4f 100644 --- a/node_modules/frontdoor/lib/section.js +++ b/node_modules/frontdoor/lib/section.js @@ -233,7 +233,8 @@ module.exports = function Section(name, description, types) { var splitPath = path.split("/"); if (!splitPath[0]) splitPath.shift(); - if (splitPath.length) { + + if (splitPath.length && sections.hasOwnProperty(splitPath[0])) { var section = sections[splitPath[0]]; if (section && section.length) { var subPath = "/" + splitPath.slice(1).join("/");