mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #481 from sharelatex/as-fix-tests
Add defensive check for req.query, fixing tests
This commit is contained in:
@@ -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 = [])->
|
||||
|
||||
Reference in New Issue
Block a user