Issue : Removed duplicates from TreemaData

This commit is contained in:
Aman Kumar 2015-02-24 03:18:35 +05:30
parent 498eae328a
commit d8a4803268

View file

@ -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'}}