diff --git a/frontend/app/components/Dashboard/components/DashboardWidgetGrid/DashboardWidgetGrid.tsx b/frontend/app/components/Dashboard/components/DashboardWidgetGrid/DashboardWidgetGrid.tsx index 0fc945bec..035ba6524 100644 --- a/frontend/app/components/Dashboard/components/DashboardWidgetGrid/DashboardWidgetGrid.tsx +++ b/frontend/app/components/Dashboard/components/DashboardWidgetGrid/DashboardWidgetGrid.tsx @@ -32,11 +32,6 @@ function DashboardWidgetGrid(props: Props) { const smallWidgetsLen = smallWidgets.length - // legacy - // smallWidgets.forEach((i, index) => { - - // }) - return useObserver(() => ( // @ts-ignore @@ -48,25 +43,29 @@ function DashboardWidgetGrid(props: Props) {
} > -
- - Web Vitals -
-
- {smallWidgets && smallWidgets.map((item: any, index: any) => ( - - dashboard.swapWidgetPosition(dragIndex, hoverIndex)} - dashboardId={dashboardId} - siteId={siteId} - isWidget={true} - grid="vitals" - /> - - ))} -
+ {smallWidgets.length && ( + <> +
+ + Web Vitals +
+
+ {smallWidgets && smallWidgets.map((item: any, index: any) => ( + + dashboard.swapWidgetPosition(dragIndex, hoverIndex)} + dashboardId={dashboardId} + siteId={siteId} + isWidget={true} + grid="vitals" + /> + + ))} +
+ + )}