mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
Remove inline error banner, use toast only for update errors
This commit is contained in:
parent
f1099a24f7
commit
6dcf22601b
1 changed files with 0 additions and 9 deletions
|
|
@ -60,7 +60,6 @@ export default function HashicorpVault() {
|
||||||
const {
|
const {
|
||||||
mutate: updateConfig,
|
mutate: updateConfig,
|
||||||
isPending: isUpdating,
|
isPending: isUpdating,
|
||||||
error: updateError,
|
|
||||||
} = useUpdateHashicorpVaultConfig(accessToken);
|
} = useUpdateHashicorpVaultConfig(accessToken);
|
||||||
|
|
||||||
const schema = data?.field_schema;
|
const schema = data?.field_schema;
|
||||||
|
|
@ -129,14 +128,6 @@ export default function HashicorpVault() {
|
||||||
</Typography.Paragraph>
|
</Typography.Paragraph>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{updateError && (
|
|
||||||
<Alert
|
|
||||||
type="error"
|
|
||||||
message="Could not update Hashicorp Vault configuration"
|
|
||||||
description={updateError instanceof Error ? updateError.message : undefined}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Form layout="vertical" initialValues={values} onFinish={handleSave}>
|
<Form layout="vertical" initialValues={values} onFinish={handleSave}>
|
||||||
{FIELD_GROUPS.map((group, index) => (
|
{FIELD_GROUPS.map((group, index) => (
|
||||||
<div key={group.title}>
|
<div key={group.title}>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue