Skip to content

Commit 54b3e81

Browse files
[OSCI][FIX] Discover: Fix the Subfields Display Issue (#5429) (#5846)
* set flattenHit() deep param as true to allow iterate on nested object Signed-off-by: Qiwen Li <qiwen_li@brown.edu> --------- Signed-off-by: qiwen li <qiwen_li@brown.edu> Signed-off-by: Qiwen Li <qiwen_li@brown.edu> Signed-off-by: Miki <miki@amazon.com> Signed-off-by: Anan Zhuang <ananzh@amazon.com> Co-authored-by: Miki <miki@amazon.com> Co-authored-by: Anan Zhuang <ananzh@amazon.com> (cherry picked from commit 40ba1f5) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 4fc9c06 commit 54b3e81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/data/common/index_patterns/index_patterns/flatten_hit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function flattenHitWrapper(
114114
metaFields = {},
115115
cache = new WeakMap()
116116
) {
117-
return function cachedFlatten(hit: Record<string, any>, deep = false) {
117+
return function cachedFlatten(hit: Record<string, any>, deep = true) {
118118
const decorateFlattened = decorateFlattenedWrapper(hit, metaFields);
119119
const cached = cache.get(hit);
120120
const flattened = cached || flattenHit(indexPattern, hit, deep);

0 commit comments

Comments
 (0)