TypeError: /home/nathalie/grandin/views/layout.pug:184
   182|                     a(href=`/${locale}/sporthorses`)= __("Sporthorses")
   183|                     ul.dropdown-menu
 > 184|                        each sporthorse in sporthorses
   185|                         li
   186|                           a(href=`/${locale}/horse/${sporthorse.slug}`)= sporthorse.birthname
   187|                 // Right Menu

Cannot read property 'length' of undefined
   at eval (eval at wrap (/home/nathalie/grandin/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:492:32)
   at eval (eval at wrap (/home/nathalie/grandin/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:515:4)
   at template (eval at wrap (/home/nathalie/grandin/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:984:57)
   at Object.exports.renderFile (/home/nathalie/grandin/node_modules/pug/lib/index.js:410:38)
   at Object.exports.renderFile (/home/nathalie/grandin/node_modules/pug/lib/index.js:400:21)
   at View.exports.__express [as engine] (/home/nathalie/grandin/node_modules/pug/lib/index.js:447:11)
   at View.render (/home/nathalie/grandin/node_modules/express/lib/view.js:128:8)
   at tryRender (/home/nathalie/grandin/node_modules/express/lib/application.js:640:10)
   at Function.render (/home/nathalie/grandin/node_modules/express/lib/application.js:592:3)
   at ServerResponse.render (/home/nathalie/grandin/node_modules/express/lib/response.js:966:7)
   at exports.productionErrors (/home/nathalie/grandin/handlers/errorHandlers.js:71:7)
   at Layer.handle_error (/home/nathalie/grandin/node_modules/express/lib/router/layer.js:71:5)
   at trim_prefix (/home/nathalie/grandin/node_modules/express/lib/router/index.js:315:13)
   at /home/nathalie/grandin/node_modules/express/lib/router/index.js:284:7
   at Function.process_params (/home/nathalie/grandin/node_modules/express/lib/router/index.js:335:12)
   at IncomingMessage.next (/home/nathalie/grandin/node_modules/express/lib/router/index.js:275:10)