Skip to content

Commit 85de812

Browse files
BboyAkersdawsontoth
authored andcommitted
chore: removed isSelfmanaged from cluster card
1 parent e78e924 commit 85de812

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/features/clusters/components/ClusterCard.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export function ClusterCard({
3737
}) {
3838
const { view, update, remove } = useOrganizationClusterPermissions(cluster.organizationId, cluster.id);
3939
const auth = useInstanceAuth(cluster.id);
40-
const isSelfManaged = useMemo(() => !!cluster?.plans?.[0]?.planId?.startsWith('self-hosted'), [cluster]);
4140

4241
const isActive = useMemo(() => cluster.status && activeClusterStatuses.includes(cluster.status), [cluster.status]);
4342
const isTerminated = useMemo(
@@ -114,9 +113,9 @@ export function ClusterCard({
114113
<Card className="relative h-full justify-between">
115114
<CardHeader>
116115
<CardDescription className="flex items-center justify-between">
117-
{!isSelfManaged ? (
116+
{cluster.fqdn ? (
118117
<>
119-
<span className="truncate max-w-48">{cluster?.fqdn}</span>
118+
<span className="truncate max-w-48">{cluster.fqdn}</span>
120119
<CopyIcon onClick={onCopyFQDNClick} size={16} />
121120
</>
122121
) : (

0 commit comments

Comments
 (0)