Merge pull request #2340 from kushniro/b-ui-tags-commas

UI: remove redundant commas in tags list (services view)
This commit is contained in:
James Phillips 2016-11-17 16:36:15 -08:00 committed by GitHub
commit c798e32d20
1 changed files with 3 additions and 1 deletions

View File

@ -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; });