Skip to content

Commit 5743e6e

Browse files
committed
fix: type error
1 parent 9433afc commit 5743e6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/agents/mcp/custom-mcp-dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const API_URL = process.env.NEXT_PUBLIC_BACKEND_URL || '';
1515
interface CustomMCPDialogProps {
1616
open: boolean;
1717
onOpenChange: (open: boolean) => void;
18-
onSave: (config: CustomMCPConfiguration) => Promise<void>;
18+
onSave: (config: CustomMCPConfiguration) => void;
1919
}
2020

2121
interface CustomMCPConfiguration {
@@ -145,7 +145,7 @@ export const CustomMCPDialog: React.FC<CustomMCPDialogProps> = ({
145145
try {
146146
let configToSave: any = { url: configText.trim() };
147147

148-
await onSave({
148+
onSave({
149149
name: serverName,
150150
type: serverType,
151151
config: configToSave,

0 commit comments

Comments
 (0)