From 362967f0c9f7d693f314691c673561de9e5b73a6 Mon Sep 17 00:00:00 2001 From: Omer Kushnir Date: Thu, 15 Sep 2016 11:37:45 +0300 Subject: [PATCH] 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. --- ui/javascripts/app/routes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/javascripts/app/routes.js b/ui/javascripts/app/routes.js index b9836cab8..5cc3c6c61 100644 --- a/ui/javascripts/app/routes.js +++ b/ui/javascripts/app/routes.js @@ -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; });