forked from phoenix/litellm-mirror
ui - show error when fail to update a callback
This commit is contained in:
parent
83660b794a
commit
90650cf4e1
1 changed files with 6 additions and 1 deletions
|
@ -72,7 +72,12 @@ const Settings: React.FC<SettingsPageProps> = ({
|
|||
environment_variables: updatedVariables,
|
||||
};
|
||||
|
||||
setCallbacksCall(accessToken, payload);
|
||||
try {
|
||||
setCallbacksCall(accessToken, payload);
|
||||
} catch (error) {
|
||||
message.error("Failed to update callback: " + error);
|
||||
}
|
||||
|
||||
message.success("Callback updated successfully");
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue