Merge branch 'master' of https://github.com/codecombat/codecombat
This commit is contained in:
commit
34205a0789
1 changed files with 3 additions and 0 deletions
|
@ -326,7 +326,10 @@ module.exports = class SpellView extends View
|
||||||
isCast = not _.isEmpty(aether.metrics) or _.some aether.problems.errors, {type: 'runtime'}
|
isCast = not _.isEmpty(aether.metrics) or _.some aether.problems.errors, {type: 'runtime'}
|
||||||
@problems = []
|
@problems = []
|
||||||
annotations = []
|
annotations = []
|
||||||
|
seenProblemKeys = {}
|
||||||
for aetherProblem, problemIndex in aether.getAllProblems()
|
for aetherProblem, problemIndex in aether.getAllProblems()
|
||||||
|
continue if aetherProblem.userInfo.key of seenProblemKeys
|
||||||
|
seenProblemKeys[aetherProblem.userInfo.key] = true
|
||||||
@problems.push problem = new Problem aether, aetherProblem, @ace, isCast and problemIndex is 0, isCast
|
@problems.push problem = new Problem aether, aetherProblem, @ace, isCast and problemIndex is 0, isCast
|
||||||
annotations.push problem.annotation if problem.annotation
|
annotations.push problem.annotation if problem.annotation
|
||||||
@aceSession.setAnnotations annotations
|
@aceSession.setAnnotations annotations
|
||||||
|
|
Reference in a new issue