We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7129ae9 commit 1b96c33Copy full SHA for 1b96c33
1 file changed
src/app/app/configs/[name]/page.tsx
@@ -33,20 +33,7 @@ export default function ConfigByNamePage() {
33
34
const defaultValue = useMemo(() => {
35
if (!config) return '';
36
- try {
37
- return JSON.stringify(
38
- typeof config.config.value === 'string'
39
- ? JSON.parse(config.config.value)
40
- : config.config.value,
41
- null,
42
- 2,
43
- );
44
- } catch {
45
- // if parsing fails, still show as string
46
- return typeof config.config.value === 'string'
47
- ? config.config.value
48
- : String(config.config.value);
49
- }
+ return JSON.stringify(config.config.value, null, 2);
50
}, [config]);
51
52
if (!config) {
0 commit comments