mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-01 15:50:11 -04:00
Merge pull request #2389 from amankr/bug/duplicates
Issue #2267: Removed duplicates from TreemaData
This commit is contained in:
commit
6d9e7a76ce
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')]
|
||||
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 =
|
||||
supermodel: @supermodel
|
||||
schema: {type: 'array', items: {type: 'object', format: 'level-component'}}
|
||||
|
|
Loading…
Add table
Reference in a new issue