mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Lens] Fix the composite runtimefields description (#127467)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
bbddc4233b
commit
8540fa9c68
1 changed files with 1 additions and 8 deletions
|
@ -80,14 +80,7 @@ export async function initFieldsRoute(setup: CoreSetup<PluginStartContract>) {
|
|||
},
|
||||
};
|
||||
|
||||
const runtimeMappings = indexPattern.fields
|
||||
.filter((f) => f.runtimeField)
|
||||
.reduce((acc, f) => {
|
||||
if (!f.runtimeField) return acc;
|
||||
// @ts-expect-error The MappingRuntimeField from @elastic/elasticsearch does not expose the "composite" runtime type yet
|
||||
acc[f.name] = f.runtimeField;
|
||||
return acc;
|
||||
}, {} as Record<string, estypes.MappingRuntimeField>);
|
||||
const runtimeMappings = indexPattern.getRuntimeMappings();
|
||||
|
||||
const search = async (aggs: Record<string, estypes.AggregationsAggregationContainer>) => {
|
||||
const result = await requestClient.search({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue