Skip to content

Commit d04f15e

Browse files
afgomezZacqary
authored andcommitted
Handle 0 sizes
Co-Authored-By: Zacqary Adam Xeper <[email protected]>
1 parent 6e17c53 commit d04f15e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/legacy/plugins/infra/server/lib/adapters/log_entries/kibana_log_entries_adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class InfraKibanaLogEntriesAdapter implements LogEntriesAdapter {
104104
index: sourceConfiguration.logAlias,
105105
ignoreUnavailable: true,
106106
body: {
107-
size: size ? size : LOG_ENTRIES_PAGE_SIZE,
107+
size: typeof size !== 'undefined' ? size : LOG_ENTRIES_PAGE_SIZE,
108108
track_total_hits: false,
109109
query: {
110110
bool: {

0 commit comments

Comments
 (0)