forked from phoenix/litellm-mirror
(feat) clear UI Cache when user creates key
This commit is contained in:
parent
c7f54f1424
commit
5776b667fb
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({
|
|||
setApiKey(response["key"]);
|
||||
message.success("API Key Created");
|
||||
form.resetFields();
|
||||
localStorage.removeItem("userData" + userID)
|
||||
} catch (error) {
|
||||
console.error("Error creating the key:", error);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue