TypeError: /usr/src/app/views/mixins/menupost.pug:124
122| if (product.minPrice.salePrice || product.minPrice.price) >= 3000000
123| .inline-button.second-button
> 124| a(href=`/mua-tra-gop-${product.category.parent.slug}/${product.slug}`) Trả góp
125| mixin postList(posts)
126| .col-xs-12.hidden-lg-up
127| h4.mobile-title.text-uppercase Tin mới
Cannot read property 'slug' of null
at Object.eval (eval at wrap (/usr/src/app/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:955:93)
at Object.pug_interp [as blockCat] (eval at wrap (/usr/src/app/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:1048:4)
at eval (eval at wrap (/usr/src/app/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:3458:23)
at template (eval at wrap (/usr/src/app/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:4354:72)
at Object.exports.renderFile (/usr/src/app/node_modules/pug/lib/index.js:427:38)
at Object.exports.renderFile (/usr/src/app/node_modules/pug/lib/index.js:417:21)
at View.exports.__express [as engine] (/usr/src/app/node_modules/pug/lib/index.js:464:11)
at View.render (/usr/src/app/node_modules/express/lib/view.js:135:8)
at tryRender (/usr/src/app/node_modules/express/lib/application.js:640:10)
at Function.render (/usr/src/app/node_modules/express/lib/application.js:592:3)
at ServerResponse.render (/usr/src/app/node_modules/express/lib/response.js:1012:7)
at ServerResponse.res.render (/usr/src/app/api/bootstrap.js:104:16)
at RenderService.render (/usr/src/app/api/services/RenderService.js:28:17)
at /usr/src/app/api/controllers/ProductController.js:410:18
at /usr/src/app/node_modules/async/dist/async.js:473:16
at processQueue (/usr/src/app/node_modules/async/dist/async.js:1578:20)