TypeError: /root/apps/cityapartaments/views/travelline.pug:4
2|
3| block variables
> 4| -
5| const pageTitle = `${apartament.title.ru} | CityApartments`;
6| const description = 'Description';
7| const keywords = 'keyword, keyword';
Cannot read property 'title' of null
at eval (eval at wrap (/root/apps/cityapartaments/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:3:33)
at template (eval at wrap (/root/apps/cityapartaments/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:488:85)
at Object.exports.renderFile (/root/apps/cityapartaments/node_modules/pug/lib/index.js:427:38)
at Object.exports.renderFile (/root/apps/cityapartaments/node_modules/pug/lib/index.js:417:21)
at View.exports.__express [as engine] (/root/apps/cityapartaments/node_modules/pug/lib/index.js:464:11)
at View.render (/root/apps/cityapartaments/node_modules/express/lib/view.js:135:8)
at tryRender (/root/apps/cityapartaments/node_modules/express/lib/application.js:640:10)
at Function.render (/root/apps/cityapartaments/node_modules/express/lib/application.js:592:3)
at ServerResponse.render (/root/apps/cityapartaments/node_modules/express/lib/response.js:1012:7)
at /root/apps/cityapartaments/api/controllers/web.js:55:26
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)