Skip to content

Commit 5cb79be

Browse files
committed
Fix config inspector
1 parent b582bda commit 5cb79be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.vitepress/theme/components/ConfigInspect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
121121
pkgStr.value = JSON.stringify(pkg, null, 2)
122122
rcJsonStr.value = JSON.stringify(pkg.cds??{}, null, 2)
123-
rcJsStr.value = 'exports.' + Object.keys(pkg.cds??{})[0] + ' = ' + JSON.stringify(Object.values(pkg.cds??{})[0], null, 2).replaceAll('"', '')
123+
rcJsStr.value = 'exports.' + Object.keys(pkg.cds??{})[0] + ' = ' + (JSON.stringify(Object.values(pkg.cds??{})[0], null, 2)??'').replaceAll('"', '')
124124
rcYmlStr.value = yaml.stringify(pkg.cds)
125125
126126
let envKey = fqn.replaceAll('_', '__').replaceAll(keyDel, '_')

0 commit comments

Comments
 (0)