Skip to content

Commit

Permalink
remove productOptions from routes/order.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Sloan authored and mrvautin committed Jun 11, 2018
1 parent 65b18cf commit 77d7262
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions routes/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,10 @@ router.get('/admin/order/view/:id', common.restrict, (req, res) => {
if(err){
console.info(err.stack);
}
let productOptions = '';
if(result.options !== {}){
productOptions = result.options;
}

res.render('order', {
title: 'View order',
result: result,
productOptions: productOptions,
config: req.app.config,
session: req.session,
message: common.clearSessionValue(req.session, 'message'),
Expand Down

0 comments on commit 77d7262

Please sign in to comment.