Skip to content

Commit

Permalink
Merge pull request #2340 from kushniro/b-ui-tags-commas
Browse files Browse the repository at this point in the history
UI: remove redundant commas in tags list (services view)
  • Loading branch information
slackpad authored Nov 18, 2016
2 parents 9a81d40 + 1bc030e commit c798e32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/javascripts/app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; });
Expand Down

0 comments on commit c798e32

Please sign in to comment.