TypeError: /root/sites/xyy.tw/views/mower.pug:27
25| small= ' ' + json.dob + ' ' + sex
26| h1= json.stories[story].title
> 27| small= ' ' + json.stories[story].date.substring(0, 4) + '/' + json.stories[story].date.substring(4, 6) + '/' + json.stories[story].date.substring(6, 8)
28|
29| //- these need to be selectable internally for filtering as well as glottolog links
30| p
Cannot read property 'substring' of undefined
at eval (eval at wrap (/root/sites/xyy.tw/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:314:88)
at template (eval at wrap (/root/sites/xyy.tw/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:1025:7)
at Object.exports.renderFile (/root/sites/xyy.tw/node_modules/pug/lib/index.js:452:38)
at Object.exports.renderFile (/root/sites/xyy.tw/node_modules/pug/lib/index.js:442:21)
at View.exports.__express [as engine] (/root/sites/xyy.tw/node_modules/pug/lib/index.js:491:11)
at View.render (/root/sites/xyy.tw/node_modules/express/lib/view.js:135:8)
at tryRender (/root/sites/xyy.tw/node_modules/express/lib/application.js:640:10)
at Function.render (/root/sites/xyy.tw/node_modules/express/lib/application.js:592:3)
at ServerResponse.render (/root/sites/xyy.tw/node_modules/express/lib/response.js:1012:7)
at Statement.<anonymous> (/root/sites/xyy.tw/index.js:770:11)
at Statement.replacement (/root/sites/xyy.tw/node_modules/sqlite3/lib/trace.js:25:27)