TypeError: /app/templates/views/journal/details.jade:9
7|
8| block details-breadcrumbs
> 9| +place-breadcrumbs({ section: section, country: config.getCountryFromListing(post.listing), region: current.region, place: { shortName: post.listing.location.suburb, key: (post.listing.location.suburb || "").toLowerCase().replace(' ', '-') }, listing: post.listing, current: 'Blog'}).has-border-lg-light
10|
11|
12| block details-header
Cannot read property 'location' of null
at Object.exports.getCountryFromListing (/app/lib/config.js:211:17)
at eval (<anonymous>:3705:40)
at eval (<anonymous>:5804:22)
at res (/app/node_modules/jade/lib/jade.js:180:38)
at Object.exports.render (/app/node_modules/jade/lib/jade.js:305:10)
at Object.exports.renderFile (/app/node_modules/jade/lib/jade.js:341:18)
at View.exports.renderFile [as engine] (/app/node_modules/jade/lib/jade.js:326:21)
at View.render (/app/node_modules/express/lib/view.js:135:8)
at tryRender (/app/node_modules/express/lib/application.js:657:10)
at Function.render (/app/node_modules/express/lib/application.js:609:3)
at ServerResponse.render (/app/node_modules/express/lib/response.js:1039:7)
at ServerResponse.cls_wrapRender [as render] (/app/node_modules/newrelic/lib/instrumentation/express.js:119:23)
at View.<anonymous> (/app/node_modules/keystone/lib/view.js:330:13)
at /app/node_modules/keystone/lib/view.js:365:3
at /app/node_modules/keystone/node_modules/async/dist/async.js:473:16
at replenish (/app/node_modules/keystone/node_modules/async/dist/async.js:1009:25)
at iterateeCallback (/app/node_modules/keystone/node_modules/async/dist/async.js:998:17)
at /app/node_modules/keystone/node_modules/async/dist/async.js:972:16
at /app/routes/views/journal/details.js:70:5
at /app/node_modules/mongoose/lib/query.js:3118:18
at invokeCallback (/app/node_modules/keystone/node_modules/es6-promise/dist/es6-promise.js:408:15)
at publish (/app/node_modules/keystone/node_modules/es6-promise/dist/es6-promise.js:391:7)
at flush (/app/node_modules/keystone/node_modules/es6-promise/dist/es6-promise.js:128:5)
at processTicksAndRejections (internal/process/task_queues.js:75:11)