From a8d9b847c4e6b8cc2474678739920bcb02674115 Mon Sep 17 00:00:00 2001 From: Star Richardson <67430892+alicenstar@users.noreply.github.com> Date: Thu, 19 Oct 2023 16:50:19 -0600 Subject: [PATCH] make labels optional (#4094) * check for labels * make labels optional type --- web/src/components/apps/HelmVMClusterManagement.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/apps/HelmVMClusterManagement.tsx b/web/src/components/apps/HelmVMClusterManagement.tsx index 1ab0615805..799cd767c7 100644 --- a/web/src/components/apps/HelmVMClusterManagement.tsx +++ b/web/src/components/apps/HelmVMClusterManagement.tsx @@ -75,7 +75,7 @@ const HelmVMClusterManagement = ({ capacity: number; used: number; }; - labels: string[]; + labels?: string[]; conditions: { memoryPressure: boolean; diskPressure: boolean; @@ -273,7 +273,7 @@ const HelmVMClusterManagement = ({ ), roles: (
- {n.labels.map((l) => ( + {n?.labels?.map((l) => (