fix: config value update error

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2021-03-26 16:42:45 +08:00
parent 1ff3a5ae62
commit 4f5c9bafa1

View File

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