diff --git a/src/features/common/components/json-view.tsx b/src/features/common/components/json-view.tsx index d98f8df67..2260099c8 100644 --- a/src/features/common/components/json-view.tsx +++ b/src/features/common/components/json-view.tsx @@ -1,4 +1,4 @@ -import { JsonView as ReactJsonView, allExpanded } from 'react-json-view-lite' +import { JsonView as ReactJsonView } from 'react-json-view-lite' import 'react-json-view-lite/dist/index.css' import styles from './json-view.module.css' import { cn } from '../utils' @@ -39,10 +39,14 @@ export function JsonView({ json }: { json: object }) { - + ) } +// Only render the top level because sometimes the object has too many children to render +const shouldExpandNode = (level: number) => { + return level < 1 +} export interface StyleProps { container: string