mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Fixed the settings view putting undefineds in the level documents and causing validation errors.
This commit is contained in:
parent
f82ca5c1b6
commit
22c4ddc064
1 changed files with 1 additions and 0 deletions
|
@ -51,4 +51,5 @@ module.exports = class SettingsTabView extends View
|
|||
onSettingsChanged: (e) =>
|
||||
$('.level-title').text @settingsTreema.data.name
|
||||
for key in @editableSettings
|
||||
continue unless @settingsTreema.data[key] is undefined
|
||||
@level.set key, @settingsTreema.data[key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue