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
hideRoot
data={data}
shouldExpandNode={() => true}
shouldExpandNode={(keyPath) => keyPath.length < 3}
invertTheme={false}
theme={theme}
/>