Showing
1 changed file
with
1 additions
and
1 deletions
@@ -296,7 +296,7 @@ const brand = (req, res, next) => { | @@ -296,7 +296,7 @@ const brand = (req, res, next) => { | ||
296 | }).then(brandHome => { | 296 | }).then(brandHome => { |
297 | params.brandHome = brandHome; | 297 | params.brandHome = brandHome; |
298 | 298 | ||
299 | - if (!brandHome.id) { | 299 | + if (!brandHome || !brandHome.id) { |
300 | res.set('Cache-Control', 'no-cache'); | 300 | res.set('Cache-Control', 'no-cache'); |
301 | } | 301 | } |
302 | 302 |
-
Please register or login to post a comment