We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2c8ee2 commit 2305e16Copy full SHA for 2305e16
1 file changed
packages/hydrooj/src/model/setting.ts
@@ -88,7 +88,7 @@ function schemaToSettings(schema: Schema<any>) {
88
let flag = (s.meta?.hidden ? FLAG_HIDDEN : 0)
89
| (s.meta?.disabled ? FLAG_DISABLED : 0);
90
const type = s.type === 'number' ? 'number'
91
- : s.type === 'boolean' ? 'checkbox'
+ : s.type === 'boolean' ? 'boolean'
92
: s.meta?.role === 'markdown' ? 'markdown'
93
: s.meta?.role === 'textarea' ? 'textarea' : 'text';
94
if (s.meta?.role === 'password') flag |= FLAG_SECRET;
0 commit comments