mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
[Fix] UI - Logs: Fix empty filter results showing stale data
Remove `.length > 0` check so that when a backend filter returns an empty result set the table correctly shows no data instead of falling back to the previous unfiltered logs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c37cf2340f
commit
57bba3b863
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ export function useLogFilterLogic({
|
|||
const filteredLogs: PaginatedResponse = useMemo(() => {
|
||||
if (hasBackendFilters) {
|
||||
// Prefer backend result if present; otherwise fall back to latest logs
|
||||
if (backendFilteredLogs && backendFilteredLogs.data && backendFilteredLogs.data.length > 0) {
|
||||
if (backendFilteredLogs && backendFilteredLogs.data) {
|
||||
return backendFilteredLogs;
|
||||
}
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue