mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 03:34:15 -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:
parent
342344bb03
commit
c496b3e712
@ -4473,10 +4473,10 @@ exports[`no explicit any`] = {
|
||||
[24, 44, 3, "Unexpected any. Specify a different type.", "193409811"],
|
||||
[24, 78, 3, "Unexpected any. Specify a different type.", "193409811"]
|
||||
],
|
||||
"public/app/features/search/service/bluge.ts:2088777935": [
|
||||
"public/app/features/search/service/bluge.ts:3054830800": [
|
||||
[38, 13, 3, "Unexpected any. Specify a different type.", "193409811"],
|
||||
[85, 9, 3, "Unexpected any. Specify a different type.", "193409811"],
|
||||
[134, 15, 3, "Unexpected any. Specify a different type.", "193409811"]
|
||||
[145, 15, 3, "Unexpected any. Specify a different type.", "193409811"]
|
||||
],
|
||||
"public/app/features/search/service/sql.ts:1428696565": [
|
||||
[91, 36, 3, "Unexpected any. Specify a different type.", "193409811"]
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user