mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
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
|
||||
document = _.omit document, @privateProperties
|
||||
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
|
||||
document.interpret = plan
|
||||
document.code = submittedCode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue