Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: fix ui rerender

Krrish Dholakia3300c16d7459
diff --git a/ui/litellm-dashboard/src/components/view_logs/log_filter_logic.tsx b/ui/litellm-dashboard/src/components/view_logs/log_filter_logic.tsx
index 262218e2fd6..3400e88578d 100644
--- a/ui/litellm-dashboard/src/components/view_logs/log_filter_logic.tsx
+++ b/ui/litellm-dashboard/src/components/view_logs/log_filter_logic.tsx
@@ -251,6 +251,15 @@ export function useLogFilterLogic({
// Reset filters state
setFilters(defaultFilters);
+ // Clear backend filtered logs to ensure fresh render
+ setBackendFilteredLogs({
+ data: [],
+ total: 0,
+ page: 1,
+ page_size: 50,
+ total_pages: 0
+ });
+
// Reset selections
debouncedSearch(defaultFilters, 1);
};