From 94751d76ebdb2ed7dfdee9b49a92929cc12257ed Mon Sep 17 00:00:00 2001 From: sylenien Date: Tue, 20 Sep 2022 16:38:33 +0200 Subject: [PATCH] change(ui): hide title when no cats --- .../DashboardWidgetGrid/DashboardWidgetGrid.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/app/components/Dashboard/components/DashboardWidgetGrid/DashboardWidgetGrid.tsx b/frontend/app/components/Dashboard/components/DashboardWidgetGrid/DashboardWidgetGrid.tsx index 51d01c45e..42f7c6fd7 100644 --- a/frontend/app/components/Dashboard/components/DashboardWidgetGrid/DashboardWidgetGrid.tsx +++ b/frontend/app/components/Dashboard/components/DashboardWidgetGrid/DashboardWidgetGrid.tsx @@ -67,10 +67,12 @@ function DashboardWidgetGrid(props: Props) { ) : null} -
- - All Metrics -
+ {smallWidgets.length > 0 && regularWidgets.length > 0 ? ( +
+ + All Metrics +
+ ) : null}
{regularWidgets && regularWidgets.map((item: any, index: any) => (