From 727d05025e3df4ab225e98ff75e5d539efa70f8c Mon Sep 17 00:00:00 2001 From: wangqianliang Date: Tue, 10 Sep 2019 13:18:25 +0800 Subject: [PATCH] fix(code/frontend): fix document search result from --- x-pack/legacy/plugins/code/public/reducers/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/legacy/plugins/code/public/reducers/search.ts b/x-pack/legacy/plugins/code/public/reducers/search.ts index 182f1905d2345..5092e611215b8 100644 --- a/x-pack/legacy/plugins/code/public/reducers/search.ts +++ b/x-pack/legacy/plugins/code/public/reducers/search.ts @@ -156,7 +156,7 @@ export const search = handleActions( took, stats: { total, - from: from! + 1, + from: from as number, to: from! + results!.length, page: page!, totalPage: totalPage!,