mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #481 from sharelatex/as-fix-tests
Add defensive check for req.query, fixing tests
This commit is contained in:
commit
bcb025e706
1 changed files with 1 additions and 1 deletions
|
@ -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 = [])->
|
||||
|
|
Loading…
Reference in a new issue