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