fix: config value update error

Signed-off-by: MiaoWoo <admin@yumc.pw>
backup
MiaoWoo 2021-03-26 16:42:45 +08:00
parent 1ff3a5ae62
commit 4f5c9bafa1
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ export class PluginConfigManager {
if (metadata.default) {
let needSave = false
for (const key of Object.keys(metadata.default)) {
if (!value[key]) {
if (value[key] == undefined) {
value[key] = metadata.default[key]
needSave = true
}