Skip to content

Commit

Permalink
fix: fix json default format
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Nov 24, 2024
1 parent 6d1e14e commit 036aeca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
export let onValueChange: (value: Json) => void
let content: Content = {
text: JSON.stringify(value ?? {}),
text: JSON.stringify(value ?? {}, null, 2),
json: value ?? {},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
})
let content: Content = {
text: JSON.stringify(value ?? {}),
text: JSON.stringify(value ?? {}, null, 2),
json: value ?? {},
}
Expand Down

0 comments on commit 036aeca

Please sign in to comment.