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] Reset page to 1 on filter reset and use pageSize param in fallbacks

Ryan Crabbe8a2186a654b6
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 9acff32d63c..8c88de49d0d 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
@@ -174,7 +174,7 @@ export function useLogFilterLogic({
data: [],
total: 0,
page: 1,
- page_size: 50,
+ page_size: pageSize,
total_pages: 0,
};
}
@@ -242,7 +242,7 @@ export function useLogFilterLogic({
data: [],
total: 0,
page: 1,
- page_size: 50,
+ page_size: pageSize,
total_pages: 0,
};
}
@@ -294,6 +294,9 @@ export function useLogFilterLogic({
// Cancel any in-flight debounced search
debouncedSearch.cancel();
+
+ // Reset to first page so the unfiltered view starts at page 1
+ setCurrentPage(1);
};
return {