From 5776b667fb1903acde8113095b623c2d6b75c848 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Mon, 12 Feb 2024 18:44:14 -0800 Subject: [PATCH] (feat) clear UI Cache when user creates key --- ui/litellm-dashboard/src/components/create_key_button.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/litellm-dashboard/src/components/create_key_button.tsx b/ui/litellm-dashboard/src/components/create_key_button.tsx index 13c96903edd..7e93f0a0a61 100644 --- a/ui/litellm-dashboard/src/components/create_key_button.tsx +++ b/ui/litellm-dashboard/src/components/create_key_button.tsx @@ -50,6 +50,7 @@ const CreateKey: React.FC = ({ setApiKey(response["key"]); message.success("API Key Created"); form.resetFields(); + localStorage.removeItem("userData" + userID) } catch (error) { console.error("Error creating the key:", error); }