Skip to content

Commit

Permalink
make labels optional (#4094)
Browse files Browse the repository at this point in the history
* check for labels

* make labels optional type
  • Loading branch information
alicenstar authored and laverya committed Oct 22, 2023
1 parent 77cb4f2 commit 2582c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/apps/HelmVMClusterManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const HelmVMClusterManagement = ({
capacity: number;
used: number;
};
labels: string[];
labels?: string[];
conditions: {
memoryPressure: boolean;
diskPressure: boolean;
Expand Down Expand Up @@ -273,7 +273,7 @@ const HelmVMClusterManagement = ({
),
roles: (
<div className="tw-w-full tw-flex tw-flex-wrap tw-gap-1">
{n.labels.map((l) => (
{n?.labels?.map((l) => (
<span
key={l}
className="tw-font-semibold tw-text-xs tw-px-1 tw-rounded-sm tw-border tw-border-solid tw-bg-white tw-border-gray-100"
Expand Down

0 comments on commit 2582c90

Please sign in to comment.