From 1bc030ecba7b4039c00d32a6b9086bd8724fe5a0 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 b9836cab8e..5cc3c6c61d 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; });