From e8dacef11512c65f2a3113620015a70c74b786a7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 8 Feb 2024 20:30:10 +0000 Subject: [PATCH] [OSCI][FIX] Discover: Fix the Subfields Display Issue (#5429) * set flattenHit() deep param as true to allow iterate on nested object Signed-off-by: Qiwen Li --------- Signed-off-by: qiwen li Signed-off-by: Qiwen Li Signed-off-by: Miki Signed-off-by: Anan Zhuang Co-authored-by: Miki Co-authored-by: Anan Zhuang (cherry picked from commit 40ba1f51602e82e6a9539431e339706c7b564b83) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md --- .../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 89bc74236891..9a8c855ec4ae 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 @@ -114,7 +114,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);