Skip to content

Commit

Permalink
remove redundant optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell committed Feb 9, 2024
1 parent 25ecfc0 commit 24cc3e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/components/apps/EmbeddedClusterManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ const EmbeddedClusterManagement = ({
</div>
<p className="tw-text-base tw-text-gray-600">
{rolesData?.roles &&
rolesData?.roles?.length > 1 &&
rolesData.roles.length > 1 &&
"Select one or more roles to assign to the new node. "}
Copy the join command and run it on the machine you'd like to join
to the cluster.
Expand All @@ -483,9 +483,9 @@ const EmbeddedClusterManagement = ({
{rolesError?.message || "Unable to fetch roles"}
</p>
)}
{rolesData?.roles && rolesData?.roles.length > 1 && (
{rolesData?.roles && rolesData.roles.length > 1 && (
<div className="tw-grid tw-gap-2 tw-grid-cols-4 tw-auto-rows-auto">
{rolesData?.roles.map((nodeType) => (
{rolesData.roles.map((nodeType) => (
<div
key={nodeType}
className={classNames("BoxedCheckbox", {
Expand Down

0 comments on commit 24cc3e8

Please sign in to comment.