Search: Fix pagination in the new search page (#51366) (#51394)

* Fix pagination in the new search

* update betterer betterer betterer betterer betterer betterer

* revert packagejson

(cherry picked from commit c496b3e712)
This commit is contained in:
Artur Wierzbicki
2022-06-24 22:17:10 +04:00
committed by GitHub
parent c54f381570
commit 899b421166
+12 -1
View File
@@ -128,7 +128,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;