Skip to content

Commit a93dd80

Browse files
slusarzsirainen
authored andcommitted
settings: Fix displaying numerical defaults
1 parent 3e7667f commit a93dd80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/data/settings.data.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ async function normalizeSettings(settings) {
5858

5959
/* Style default entry. */
6060
if (!!v.default) {
61-
if (typeof v.default === 'string' || v.default instanceof String)
61+
if (['string', 'number'].includes(typeof v.default) ||
62+
v.default instanceof String)
6263
v.default = normalizeString(md, v.default, 'code')
6364
else {
6465
let out = normalizeString(md, v.default.value ?? '', 'code')

0 commit comments

Comments
 (0)