Change JsonView default initialExpandDepth from 2 to 3

This commit is contained in:
cgoing
2025-03-26 00:11:07 +09:00
parent 2588f3aeb3
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