mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 05:43:48 +00:00
Conditional check
This commit is contained in:
parent
8cafda8419
commit
b6289f03e3
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ module.exports = ProjectController =
|
|||
showAutoCompileOnboarding: (cb) ->
|
||||
cb = underscore.once(cb)
|
||||
# Force autocompile rollout if query param set
|
||||
if req.query.ac == 't'
|
||||
if req.query?.ac == 't'
|
||||
return cb(null, { enabled: true, showOnboarding: true })
|
||||
|
||||
if !user_id?
|
||||
|
|
Loading…
Add table
Reference in a new issue