mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 14:50:48 +00:00
Add defensive check for req.query, fixing tests
This commit is contained in:
parent
f0bcb332bb
commit
35cc5bf19c
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