Merge pull request #481 from sharelatex/as-fix-tests

Add defensive check for req.query, fixing tests
This commit is contained in:
Alasdair Smith 2018-04-10 10:41:09 +01:00 committed by GitHub
commit bcb025e706

View file

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