From 31b41b7fa395e6d2944f6f339bd0026762c91057 Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Fri, 4 Sep 2026 18:58:20 -0700 Subject: [PATCH] refactor(ui): name plugin context default --- ui/litellm-dashboard/src/contexts/PluginModeContext.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/contexts/PluginModeContext.tsx b/ui/litellm-dashboard/src/contexts/PluginModeContext.tsx index 99e024e1f10..a9384962c87 100644 --- a/ui/litellm-dashboard/src/contexts/PluginModeContext.tsx +++ b/ui/litellm-dashboard/src/contexts/PluginModeContext.tsx @@ -30,12 +30,14 @@ interface PluginModeContextValue { activePlugin: Plugin | null; } -const PluginModeContext = createContext({ +const defaultPluginModeContext: PluginModeContextValue = { mode: "ai-gateway", setMode: () => {}, plugins: [], activePlugin: null, -}); +}; + +const PluginModeContext = createContext(defaultPluginModeContext); const STORAGE_KEY = "litellm_plugin_mode"; const pluginApiClient = createApiClient({ getBaseUrl: () => getProxyBaseUrl() ?? "" });