mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
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) {
|
setupController: function(controller, model) {
|
||||||
var tags = [];
|
var tags = [];
|
||||||
model.map(function(obj){
|
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; });
|
tags = tags.filter(function(n){ return n !== undefined; });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user