mirror of https://github.com/status-im/consul.git
Merge pull request #2340 from kushniro/b-ui-tags-commas
UI: remove redundant commas in tags list (services view)
This commit is contained in:
commit
c798e32d20
|
@ -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…
Reference in New Issue