Skip to content

Commit bf74238

Browse files
committed
Fixing error from MCP workbench that was caused during upgrade
1 parent 02a6c51 commit bf74238

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/user-interface/react/src/components/mcp-workbench/McpWorkbenchManagementComponent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ import ColorSchemeContext from '@/shared/color-scheme.provider';
4242
import { Mode } from '@cloudscape-design/global-styles';
4343
import { formatDate } from '@/shared/util/formats';
4444

45+
const AceEditorComponent: any = (AceEditor as any)?.default ?? AceEditor;
46+
4547
// Set up a sample tool demonstration that builds the same MCP tool using both
4648
// the function-based and class-based approaches.
4749
const DEFAULT_CONTENT = `from mcpworkbench.core.annotations import mcp_tool
@@ -633,7 +635,7 @@ export function McpWorkbenchManagementComponent (): ReactElement {
633635
// disableHeaderPaddings={true}
634636
>
635637
<div style={{overflow: 'hidden', borderRadius: '16px'}}>
636-
<AceEditor
638+
<AceEditorComponent
637639
theme={colorScheme === Mode.Light ? 'cloud_editor' : 'cloud_editor_dark'}
638640
showGutter={true}
639641
value={state.form.contents}

0 commit comments

Comments
 (0)