Skip to content

Commit

Permalink
[ML] Fix to always return a boolean.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Feb 21, 2020
1 parent c5ae56a commit 55b7d6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function isSimpleQuery(arg: any): arg is SimpleQuery {

export const matchAllQuery = { match_all: {} };
export function isMatchAllQuery(query: any): boolean {
return query.match_all && Object.keys(query.match_all).length === 0;
return query.match_all !== undefined && Object.keys(query.match_all).length === 0;
}

export const defaultQuery: PivotQuery = { query_string: { query: '*' } };
Expand Down

0 comments on commit 55b7d6e

Please sign in to comment.