From e0dafc571afb0c38770b2ddb6d37ccfcc22450fe Mon Sep 17 00:00:00 2001 From: Phoenix Eliot Date: Wed, 31 Aug 2016 14:35:50 -0700 Subject: [PATCH] Fix making Problems from AetherProblems with no range --- app/views/play/level/tome/Problem.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/play/level/tome/Problem.coffee b/app/views/play/level/tome/Problem.coffee index 1ebbfeab2..8cf283ee5 100644 --- a/app/views/play/level/tome/Problem.coffee +++ b/app/views/play/level/tome/Problem.coffee @@ -14,7 +14,7 @@ module.exports = class Problem { @lineMarkerRange, @textMarkerRange } = @buildMarkerRangesFromAetherProblem(@aetherProblem) if isCast { @level, @range, @message, @hint, @userInfo } = @aetherProblem - { @row, @column: col } = @aetherProblem.range?[0] + { @row, @column: col } = @aetherProblem.range?[0] or {} @createdBy = 'aether' else unless userCodeHasChangedSinceLastCast