Fix another error I saw in the logs
This commit is contained in:
parent
d0be5c1f22
commit
2faca0419b
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class LevelSessionHandler extends Handler
|
||||||
not document.submittedCode # TODO: only allow leaderboard access to non-top-5 solutions
|
not document.submittedCode # TODO: only allow leaderboard access to non-top-5 solutions
|
||||||
document = _.omit document, @privateProperties
|
document = _.omit document, @privateProperties
|
||||||
if req.query.interpret
|
if req.query.interpret
|
||||||
plan = submittedCode[if document.team is 'humans' then 'hero-placeholder' else 'hero-placeholder-1'].plan
|
plan = submittedCode[if document.team is 'humans' then 'hero-placeholder' else 'hero-placeholder-1']?.plan ? ''
|
||||||
plan = LZString.compressToUTF16 plan
|
plan = LZString.compressToUTF16 plan
|
||||||
document.interpret = plan
|
document.interpret = plan
|
||||||
document.code = submittedCode
|
document.code = submittedCode
|
||||||
|
|
Reference in a new issue