remove productOptions from routes/order.js

master
Martin Sloan 2018-06-07 07:12:04 -04:00 committed by Mark Moffat
parent 65b18cfe42
commit 77d7262124
1 changed files with 1 additions and 5 deletions

View File

@ -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'),