From 5616f88a46d405fbd54edf8aed049063482fafbc Mon Sep 17 00:00:00 2001 From: qiwen li Date: Fri, 3 Nov 2023 17:19:11 -0400 Subject: [PATCH] [osci23] set flattenHit() deep param as true Signed-off-by: qiwen li --- .../data/common/index_patterns/index_patterns/flatten_hit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/data/common/index_patterns/index_patterns/flatten_hit.ts b/src/plugins/data/common/index_patterns/index_patterns/flatten_hit.ts index 63dc3eb453dd..73ace5e41a05 100644 --- a/src/plugins/data/common/index_patterns/index_patterns/flatten_hit.ts +++ b/src/plugins/data/common/index_patterns/index_patterns/flatten_hit.ts @@ -112,7 +112,7 @@ export function flattenHitWrapper( metaFields = {}, cache = new WeakMap() ) { - return function cachedFlatten(hit: Record, deep = false) { + return function cachedFlatten(hit: Record, deep = true) { const decorateFlattened = decorateFlattenedWrapper(hit, metaFields); const cached = cache.get(hit); const flattened = cached || flattenHit(indexPattern, hit, deep);