From 3300c16d7459a3081499ea4d3d80ec941df27bd2 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 4 Oct 2025 14:17:36 -0700 Subject: [PATCH] fix: fix ui rerender --- .../src/components/view_logs/log_filter_logic.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) 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 262218e2fd..3400e88578 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); };