Change JsonView default initialExpandDepth from 2 to 3

This commit is contained in:
cgoing 2025-03-26 00:11:07 +09:00
commit 03c1ba3092

View file

@ -23,7 +23,7 @@ function tryParseJson(str: string): { success: boolean; data: JsonValue } {
}
const JsonView = memo(
({ data, name, initialExpandDepth = 2 }: JsonViewProps) => {
({ data, name, initialExpandDepth = 3 }: JsonViewProps) => {
const normalizedData =
typeof data === "string"
? tryParseJson(data).success