mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 21:04:59 +00:00
update tests
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user