UI: remove redundant commas in tags list (services view)

When some services had no tags(Tags is null) and some did have tags redundant commas were added to the tags list.
pull/2340/head
Omer Kushnir 8 years ago committed by GitHub
parent f57b84b807
commit 1bc030ecba

@ -250,7 +250,9 @@ App.ServicesShowRoute = App.BaseRoute.extend({
setupController: function(controller, model) {
var tags = [];
model.map(function(obj){
tags = tags.concat(obj.Service.Tags);
if (obj.Service.Tags !== null) {
tags = tags.concat(obj.Service.Tags);
}
});
tags = tags.filter(function(n){ return n !== undefined; });

Loading…
Cancel
Save