Skip to content

Commit

Permalink
[Maps] populate _id in tooltip (#41684) (#41699)
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese authored Jul 23, 2019
1 parent 3547c09 commit af960a8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ export class ESSearchSource extends AbstractESSource {

const properties = indexPattern.flattenHit(hit);
indexPattern.metaFields.forEach(metaField => {
delete properties[metaField];
if (!this._descriptor.tooltipProperties.includes(metaField)) {
delete properties[metaField];
}
});
return properties;
}
Expand Down

0 comments on commit af960a8

Please sign in to comment.