mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
core: filter empty set operation
This commit is contained in:
1 parent
fdfa5e9722
commit
1bd551916e
1 file changed
+1
-1
@@ -363,7 +363,7 @@ class HomeSettingsHandler extends Handler {
|
||||
if (val !== undefined) $set[key] = val;
|
||||
}
|
||||
for (const key in booleanKeys) if (!args[key]) $set[key] = false;
|
||||
await setter($set);
|
||||
if (Object.keys($set).length) await setter($set);
|
||||
if (args.viewLang && args.viewLang !== this.session.viewLang) this.session.viewLang = '';
|
||||
this.back();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user