From d0e3f1e92bad25c2e65f7a3b1c3643809032712b Mon Sep 17 00:00:00 2001 From: michael sorens Date: Thu, 1 Aug 2019 16:42:31 -0700 Subject: [PATCH] Empty object clean-up Does not really make sense to have a user or a team object that is totally empty. Their properties might be empty, but their properties should always exist. This nicely cleans up the templates, too. Signed-off-by: michael sorens --- .../pages/team-details/team-details.component.html | 14 +++++++------- .../pages/team-details/team-details.component.ts | 6 ++++++ .../pages/user-details/user-details.component.html | 10 +++++----- .../user-details/user-details.component.spec.ts | 6 +----- .../pages/user-details/user-details.component.ts | 6 +++++- 5 files changed, 24 insertions(+), 18 deletions(-) diff --git a/components/automate-ui/src/app/pages/team-details/team-details.component.html b/components/automate-ui/src/app/pages/team-details/team-details.component.html index c95372a1a2d..83591df73f7 100644 --- a/components/automate-ui/src/app/pages/team-details/team-details.component.html +++ b/components/automate-ui/src/app/pages/team-details/team-details.component.html @@ -5,12 +5,12 @@
Teams - {{ team?.id }} + {{ team.id }} - {{ team?.id }} - {{ team?.name }} + {{ team.id }} + {{ team.name }} @@ -20,8 +20,8 @@ - - + +
{{ team?.name }}{{ team?.id }}{{ team.name }}{{ team.id }}
@@ -32,7 +32,7 @@
-
+