Merge pull request #2386 from automatisch/AUT-1195
fix: expand only first level of nodes on load
This commit is contained in:
@@ -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}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user