Skip to content

Commit

Permalink
use empty string in the be
Browse files Browse the repository at this point in the history
  • Loading branch information
oatkiller committed Jul 15, 2020
1 parent 7b5b69c commit 3effa8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class PaginationBuilder {
const lastResult = results[results.length - 1];
const cursor = {
timestamp: lastResult['@timestamp'],
eventID: String(eventId(lastResult)),
eventID: eventId(lastResult) === undefined ? '' : String(eventId(lastResult)),
};
return PaginationBuilder.urlEncodeCursor(cursor);
}
Expand Down

0 comments on commit 3effa8b

Please sign in to comment.