Skip to content

Commit bd623a5

Browse files
committed
fix
1 parent 2469b93 commit bd623a5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCard.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ export function ControlPlaneCard({ controlPlane, workspace, projectName }: Props
5151
);
5252

5353
const name = controlPlane.metadata.name;
54-
const displayName = controlPlane?.metadata?.annotations?.[DISPLAY_NAME_ANNOTATION];
55-
console.log(controlPlane);
54+
const displayName =
55+
controlPlane?.metadata?.annotations?.[DISPLAY_NAME_ANNOTATION as keyof typeof controlPlane.metadata.annotations];
56+
5657
const namespace = controlPlane.metadata.namespace;
5758

5859
const isSystemIdentityProviderEnabled = Boolean(controlPlane.spec?.authentication?.enableSystemIdentityProvider);

src/lib/api/types/crate/controlPlanes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export interface Metadata {
66
name: string;
77
namespace: string;
88
annotations: {
9-
[annotation: string]: unknown;
9+
'openmcp.cloud/display-name': string;
1010
};
1111
}
1212

0 commit comments

Comments
 (0)