Skip to content

Commit d1cf97e

Browse files
Maja Grubictimroes
andauthored
Update src/plugins/data/common/search/search_source/search_source.ts
Co-authored-by: Tim Roes <mail@timroes.de>
1 parent 305934e commit d1cf97e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugins/data/common/search/search_source/search_source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ export class SearchSource {
518518
);
519519
const uniqFieldNames = [...new Set([...bodyFieldNames, ...fieldsFromSource])];
520520

521-
if (uniqFieldNames.indexOf('*') === -1) {
521+
if (!uniqFieldNames.includes('*')) {
522522
// filter down script_fields to only include items specified
523523
body.script_fields = pick(
524524
body.script_fields,

0 commit comments

Comments
 (0)