fix: config value update error
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
1ff3a5ae62
commit
4f5c9bafa1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user