mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Fixed the component and system settings treema, clearing out defaults for properties not being edited.
This commit is contained in:
parent
ab669739a6
commit
162aa7633e
2 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,7 @@ module.exports = class LevelComponentEditView extends CocoView
|
|||
schema = _.cloneDeep LevelComponent.schema
|
||||
schema.properties = _.pick schema.properties, (value, key) => key in @editableSettings
|
||||
schema.required = _.intersection schema.required, @editableSettings
|
||||
schema.default = _.pick schema.default, (value, key) => key in @editableSettings
|
||||
|
||||
treemaOptions =
|
||||
supermodel: @supermodel
|
||||
|
|
|
@ -43,6 +43,7 @@ module.exports = class LevelSystemEditView extends CocoView
|
|||
schema = _.cloneDeep LevelSystem.schema
|
||||
schema.properties = _.pick schema.properties, (value, key) => key in @editableSettings
|
||||
schema.required = _.intersection schema.required, @editableSettings
|
||||
schema.default = _.pick schema.default, (value, key) => key in @editableSettings
|
||||
|
||||
treemaOptions =
|
||||
supermodel: @supermodel
|
||||
|
|
Loading…
Reference in a new issue