TypeError: /var/app/current/views/pages/TripDetails.ejs:125
123| <%- include('../partials/header'); %>
124|
>> 125| <% if(trips.bannerimage == null){ %>
126| <div class="destination_banner_wrap overlay" style="background-image: url('/images/<%= trips.imageurl %>');">
127| <% } else{ %>
128| <div class="destination_banner_wrap overlay" style="background-image: url('/images/<%= trips.bannerimage %>');">
Cannot read property 'bannerimage' of undefined
at eval (eval at compile (/var/app/current/node_modules/ejs/lib/ejs.js:662:12), <anonymous>:18:17)
at TripDetails (/var/app/current/node_modules/ejs/lib/ejs.js:692:17)
at tryHandleCache (/var/app/current/node_modules/ejs/lib/ejs.js:272:36)
at View.exports.renderFile [as engine] (/var/app/current/node_modules/ejs/lib/ejs.js:489:10)
at View.render (/var/app/current/node_modules/express/lib/view.js:135:8)
at tryRender (/var/app/current/node_modules/express/lib/application.js:640:10)
at Function.render (/var/app/current/node_modules/express/lib/application.js:592:3)
at ServerResponse.render (/var/app/current/node_modules/express/lib/response.js:1012:7)
at exports.getTourDetails (/var/app/current/controllers/tours.js:121:9)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)