Skip to content

Commit

Permalink
[ML] Improve check for runtime fields in datafeed query (#98289)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic authored Apr 26, 2021
1 parent 0cf3399 commit a2813dd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ function findFieldsInQuery(obj: object) {
if (isPopulatedObject(val)) {
fields.push(key);
fields.push(...findFieldsInQuery(val));
} else if (typeof val === 'string') {
fields.push(val);
} else {
fields.push(key);
}
Expand Down

0 comments on commit a2813dd

Please sign in to comment.