Skip to content

Commit

Permalink
bug: filePath != null
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Oct 28, 2016
1 parent 73b8dca commit 3606af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/routes/get-main.js
Expand Up @@ -140,7 +140,7 @@ var route = function(req, res, next) {
}
EditorVariables = abeExtend.hooks.instance.trigger('afterVariables', EditorVariables)

if (filePath.indexOf(`.json`) > -1) {
if (filePath != null && filePath.indexOf(`.json`) > -1) {
res.set('Content-Type', 'application/json')
res.send(JSON.stringify(_json))
}else {
Expand Down

0 comments on commit 3606af2

Please sign in to comment.