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() ?? "" });