core: fix schema boolean setting display (#990)

This commit is contained in:
panda authored and GitHub committed 2025-06-08 15:54:05 +01:00
1 parent c2c8ee2e64
commit 2305e168f0
1 file changed
+1 -1
+1 -1
View File
@@ -88,7 +88,7 @@ function schemaToSettings(schema: Schema<any>) {
let flag = (s.meta?.hidden ? FLAG_HIDDEN : 0)
| (s.meta?.disabled ? FLAG_DISABLED : 0);
const type = s.type === 'number' ? 'number'
: s.type === 'boolean' ? 'checkbox'
: s.type === 'boolean' ? 'boolean'
: s.meta?.role === 'markdown' ? 'markdown'
: s.meta?.role === 'textarea' ? 'textarea' : 'text';
if (s.meta?.role === 'password') flag |= FLAG_SECRET;