mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix #446
This commit is contained in:
1 parent
500e08abac
commit
c2ad7df336
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "4.2.6",
|
||||
"version": "4.2.7",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/plugin-api",
|
||||
"module": "src/plugin-api",
|
||||
|
||||
@@ -171,7 +171,7 @@ class SystemSettingHandler extends SystemHandler {
|
||||
for (const key in booleanKeys) {
|
||||
if (typeof booleanKeys[key] === 'object') {
|
||||
for (const subkey in booleanKeys[key]) {
|
||||
if (!args[key][subkey]) tasks.push(system.set(`${key}.${subkey}`, false));
|
||||
if (!args[key]?.[subkey]) tasks.push(system.set(`${key}.${subkey}`, false));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user