Skip to content

Commit 036aeca

Browse files
committed
fix: fix json default format
1 parent 6d1e14e commit 036aeca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/frontend/src/lib/components/blocks/field-control/json-control.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
export let onValueChange: (value: Json) => void
88
99
let content: Content = {
10-
text: JSON.stringify(value ?? {}),
10+
text: JSON.stringify(value ?? {}, null, 2),
1111
json: value ?? {},
1212
}
1313

apps/frontend/src/lib/components/blocks/grid-view/editable-cell/json-cell.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
})
2626
2727
let content: Content = {
28-
text: JSON.stringify(value ?? {}),
28+
text: JSON.stringify(value ?? {}, null, 2),
2929
json: value ?? {},
3030
}
3131

0 commit comments

Comments
 (0)