mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Search: Fix pagination in the new search page (#51366)
* Fix pagination in the new search * update betterer betterer betterer betterer betterer betterer * revert packagejson
This commit is contained in:
@@ -131,7 +131,18 @@ async function doSearchQuery(query: SearchQuery): Promise<QueryResponse> {
|
||||
const frame = (
|
||||
await lastValueFrom(
|
||||
ds.query({
|
||||
targets: [{ ...target, refId: 'Page', facet: undefined, from, limit: Math.max(limit, nextPageSizes) }],
|
||||
targets: [
|
||||
{
|
||||
...target,
|
||||
search: {
|
||||
...(target?.search ?? {}),
|
||||
from,
|
||||
limit: Math.max(limit, nextPageSizes),
|
||||
},
|
||||
refId: 'Page',
|
||||
facet: undefined,
|
||||
},
|
||||
],
|
||||
} as any)
|
||||
)
|
||||
).data?.[0] as DataFrame;
|
||||
|
||||
Reference in New Issue
Block a user