Skip to content

Commit 2305e16

Browse files
authored
core: fix schema boolean setting display (#990)
1 parent c2c8ee2 commit 2305e16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/hydrooj/src/model/setting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function schemaToSettings(schema: Schema<any>) {
8888
let flag = (s.meta?.hidden ? FLAG_HIDDEN : 0)
8989
| (s.meta?.disabled ? FLAG_DISABLED : 0);
9090
const type = s.type === 'number' ? 'number'
91-
: s.type === 'boolean' ? 'checkbox'
91+
: s.type === 'boolean' ? 'boolean'
9292
: s.meta?.role === 'markdown' ? 'markdown'
9393
: s.meta?.role === 'textarea' ? 'textarea' : 'text';
9494
if (s.meta?.role === 'password') flag |= FLAG_SECRET;

0 commit comments

Comments
 (0)