Skip to content

Commit 1b09a96

Browse files
author
David Bengsch
authored
Merge pull request #175 from kuzzleio/topic-fix-next
Fix the next method in searchResult
2 parents 9c6a737 + f8bc326 commit 1b09a96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kuzzle-sdk",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"description": "Official Javascript SDK for Kuzzle",
55
"author": "The Kuzzle Team <support@kuzzle.io>",
66
"repository": {

src/SearchResult.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ KuzzleSearchResult.prototype.next = function (cb) {
9595
}
9696

9797
// from and size parameters are not valid for a scroll action
98-
if (options.from) {
98+
if (typeof options.from !== 'undefined') {
9999
delete options.from;
100100
}
101101

0 commit comments

Comments
 (0)