Fixed assignment to constant variable

master
Keith Irwin 2017-05-23 13:43:56 -04:00
parent 5b3b03f44c
commit bb2ccb6a5f
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ router.get('/:slug?', (req,res,next)=>{
.then( (mapuser)=>{
if (!mapuser){ next(); } //404
else {
const active = '';
var active = '';
if (req.user && req.user.id===mapuser.id){ active='map'; }
res.render('map', {
active: active,