fix: ui fixes

This commit is contained in:
Krrish Dholakia 2026-02-24 21:11:56 -08:00
parent 0b86fc56f2
commit 89a88a401e
2 changed files with 17 additions and 1 deletions

View file

@ -12995,6 +12995,21 @@
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/@next/swc-win32-ia32-msvc": {
"version": "14.2.33",
"resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.33.tgz",
"integrity": "sha512-pc9LpGNKhJ0dXQhZ5QMmYxtARwwmWLpeocFmVG5Z0DzWq5Uf0izcI8tLc+qOpqxO1PWqZ5A7J1blrUIKrIFc7Q==",
"cpu": [
"ia32"
],
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 10"
}
}
}
}

View file

@ -218,7 +218,8 @@ const AddAgentForm: React.FC<AddAgentFormProps> = ({
onSuccess();
} catch (error) {
console.error("Error creating agent:", error);
message.error("Failed to create agent");
const errorMessage = error instanceof Error ? error.message : String(error);
message.error(errorMessage ? `Failed to create agent: ${errorMessage}` : "Failed to create agent");
} finally {
setIsSubmitting(false);
}