fix: expand only two first levels of nodes on load
This commit is contained in:
@@ -46,7 +46,7 @@ function JSONViewer(props) {
|
||||
<JSONTree
|
||||
hideRoot
|
||||
data={data}
|
||||
shouldExpandNode={() => true}
|
||||
shouldExpandNode={(keyPath) => keyPath.length < 3}
|
||||
invertTheme={false}
|
||||
theme={theme}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user