We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55f6220 commit 469fd24Copy full SHA for 469fd24
src/spaces/mcp/pages/McpPage.tsx
@@ -55,8 +55,10 @@ export default function McpPage() {
55
error,
56
isLoading,
57
} = useApiResource(ControlPlaneResource(projectName, workspaceName, controlPlaneName));
58
- // @ts-ignore
59
- const displayName = mcp?.metadata?.annotations?.[DISPLAY_NAME_ANNOTATION];
+ const displayName =
+ mcp?.metadata?.annotations && typeof mcp.metadata.annotations === 'object'
60
+ ? (mcp.metadata.annotations as Record<string, string | undefined>)[DISPLAY_NAME_ANNOTATION]
61
+ : undefined;
62
const onEditComponents = () => {
63
setEditManagedControlPlaneWizardSection('componentSelection');
64
setIsEditManagedControlPlaneWizardOpen(true);
0 commit comments