Skip to content

Commit

Permalink
[OSCI][FIX] Discover: Fix the Subfields Display Issue (#5429) (#5847)
Browse files Browse the repository at this point in the history
* set flattenHit() deep param as true to allow iterate on nested object

Signed-off-by: Qiwen Li <[email protected]>

---------

Signed-off-by: qiwen li <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>
Signed-off-by: Miki <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Co-authored-by: Miki <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
(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>
  • Loading branch information
1 parent 8f84309 commit 678cacd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function flattenHitWrapper(
metaFields = {},
cache = new WeakMap()
) {
return function cachedFlatten(hit: Record<string, any>, deep = false) {
return function cachedFlatten(hit: Record<string, any>, deep = true) {
const decorateFlattened = decorateFlattenedWrapper(hit, metaFields);
const cached = cache.get(hit);
const flattened = cached || flattenHit(indexPattern, hit, deep);
Expand Down

0 comments on commit 678cacd

Please sign in to comment.