fix: expand only two first levels of nodes on load

This commit is contained in:
kasia.oczkowska
2025-03-07 12:54:32 +00:00
parent 304b9a9079
commit af09ffeddb

View File

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