Skip to content

Commit

Permalink
[OSCI][FIX] Discover: Fix the Subfields Display Issue (#5429)
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>
  • Loading branch information
3 people committed Jan 26, 2024
1 parent 095d5a1 commit b67b63f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,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 b67b63f

Please sign in to comment.