From 35cc5bf19c1224546539eccb2609debb34d392ef Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Tue, 10 Apr 2018 10:38:40 +0100 Subject: [PATCH] Add defensive check for req.query, fixing tests --- .../web/app/coffee/Features/Project/ProjectController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Project/ProjectController.coffee b/services/web/app/coffee/Features/Project/ProjectController.coffee index e95d208900..77aabd8524 100644 --- a/services/web/app/coffee/Features/Project/ProjectController.coffee +++ b/services/web/app/coffee/Features/Project/ProjectController.coffee @@ -301,7 +301,7 @@ module.exports = ProjectController = themes: THEME_LIST maxDocLength: Settings.max_doc_length useV2History: !!project.overleaf?.history?.display - showRichText: req.query.rt == 'true' + showRichText: req.query?.rt == 'true' timer.done() _buildProjectList: (allProjects, v1Projects = [])->