update tests

This commit is contained in:
yiling
2026-06-07 19:26:07 +08:00
parent aa8d159dd3
commit 99424aa6e1
4 changed files with 27 additions and 17 deletions
@@ -185,7 +185,10 @@ export function SearchFilterDialog({
const errorData = (await res.json().catch(() => ({}))) as Record<string, unknown>
throw new Error((errorData.message as string) || 'Search failed')
}
return (await res.json()) as { data: AssetInfo[]; pageInfo?: { total?: number; cursor?: string } }
return (await res.json()) as {
data: AssetInfo[]
pageInfo?: { total?: number; cursor?: string }
}
},
enabled: open && hasActiveCriteria,
staleTime: 500,