Procházet zdrojové kódy

Add defensive check for req.query, fixing tests

Alasdair Smith před 8 roky
rodič
revize
35cc5bf19c

+ 1 - 1
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 = [])->