diff --git a/app/views/common/LevelSessionCodeView.coffee b/app/views/common/LevelSessionCodeView.coffee index 768793115..277eb2e3e 100644 --- a/app/views/common/LevelSessionCodeView.coffee +++ b/app/views/common/LevelSessionCodeView.coffee @@ -39,7 +39,7 @@ module.exports = class LevelSessionCodeView extends CocoView teamSpells = @session.get('teamSpells')[team] or [] filteredSpells = [] for spell in teamSpells - code = @session.getSourceFor(spell) + code = @session.getSourceFor(spell) ? '' lines = code.split('\n').length height = lines * 16 + 20 filteredSpells.push {