TypeError: /root/pallium/src/views/public/spetsialistile.ejs:18
16| <%- data[0].title %>
17| <% } else{ %>
>> 18| <%- match[0].title %>
19| <% } %>
20| </h1>
21| <p class="patient-card-p">
Cannot read property 'title' of undefined
at eval (eval at compile (/root/pallium/node_modules/ejs/lib/ejs.js:549:12), <anonymous>:26:26)
at returnedFn (/root/pallium/node_modules/ejs/lib/ejs.js:580:17)
at tryHandleCache (/root/pallium/node_modules/ejs/lib/ejs.js:223:34)
at View.exports.renderFile [as engine] (/root/pallium/node_modules/ejs/lib/ejs.js:437:10)
at View.render (/root/pallium/node_modules/express/lib/view.js:135:8)
at tryRender (/root/pallium/node_modules/express/lib/application.js:640:10)
at Function.render (/root/pallium/node_modules/express/lib/application.js:592:3)
at ServerResponse.render (/root/pallium/node_modules/express/lib/response.js:1008:7)
at /root/pallium/src/app/routes.js:146:10
at /root/pallium/node_modules/mongoose/lib/model.js:4451:16
at model.hooks.execPost (/root/pallium/node_modules/mongoose/lib/aggregate.js:849:13)
at /root/pallium/node_modules/mongoose/node_modules/kareem/index.js:135:16
at args.(anonymous function) (/usr/local/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:138:29)
at process.internalTickCallback (internal/process/next_tick.js:70:11)