Skip to content

Commit 0b04cd7

Browse files
authored
fix: missing props.defaultInspectDepth (#40)
1 parent 3af9c15 commit 0b04cd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stores/JsonViewerStore.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ export const createJsonViewerStore = <T = unknown>(props: JsonViewerProps<T>) =>
4949
onChange: props.onChange ?? (() => {}),
5050
keyRenderer: props.keyRenderer ?? DefaultKeyRenderer,
5151
editable: props.editable ?? true,
52+
defaultInspectDepth: props.defaultInspectDepth ?? 5,
5253
// internal state
5354
inspectCache: {},
5455
hoverPath: null,
55-
defaultInspectDepth: 5,
5656
colorspace: lightColorspace,
5757
value: props.value
5858
},

0 commit comments

Comments
 (0)