mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-01 08:23:57 -04:00
Issue #2267: Removed duplicates from TreemaData
This commit is contained in:
parent
498eae328a
commit
d8a4803268
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,10 @@ module.exports = class ComponentsTabView extends CocoView
|
||||||
res = [(if comp.count then 0 else 1), component.get('system'), component.get('name')]
|
res = [(if comp.count then 0 else 1), component.get('system'), component.get('name')]
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
res = {}
|
||||||
|
res[treemaData[key].original] = treemaData[key] for key in [0..treemaData.length-1]
|
||||||
|
treemaData = (value for key, value of res) # Removing duplicates from treemaData
|
||||||
|
|
||||||
treemaOptions =
|
treemaOptions =
|
||||||
supermodel: @supermodel
|
supermodel: @supermodel
|
||||||
schema: {type: 'array', items: {type: 'object', format: 'level-component'}}
|
schema: {type: 'array', items: {type: 'object', format: 'level-component'}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue