mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Fixed bug showing spell palette for languages missing any code snippets.
This commit is contained in:
parent
8719b80663
commit
6a31e0bcd3
1 changed files with 2 additions and 2 deletions
|
@ -180,8 +180,8 @@ module.exports = class SpellView extends View
|
|||
return (owner is 'this' or owner is 'more') and (not doc.owner? or doc.owner is 'this')
|
||||
console.log 'could not find doc for', prop, 'from', e.allDocs['__' + prop], 'for', owner, 'of', e.propGroups unless doc
|
||||
doc ?= prop
|
||||
if doc.snippets?
|
||||
entry =
|
||||
if doc.snippets?[@spell.language]
|
||||
entry =
|
||||
content: doc.snippets[@spell.language].code
|
||||
name: doc.name
|
||||
tabTrigger: doc.snippets[@spell.language].tab
|
||||
|
|
Loading…
Add table
Reference in a new issue