Merge pull request #2386 from automatisch/AUT-1195

fix: expand only first level of nodes on load
This commit is contained in:
Ali BARIN
2025-03-20 23:53:15 +01:00
committed by GitHub

View File

@@ -46,7 +46,7 @@ function JSONViewer(props) {
<JSONTree <JSONTree
hideRoot hideRoot
data={data} data={data}
shouldExpandNode={() => true} shouldExpandNode={(keyPath) => keyPath.length < 3}
invertTheme={false} invertTheme={false}
theme={theme} theme={theme}
/> />