fix: allow disabling the default general agent (#1616)
parent
58e889796c
commit
2b195e82ee
|
|
@ -38,7 +38,10 @@ export namespace Agent {
|
|||
},
|
||||
}
|
||||
for (const [key, value] of Object.entries(cfg.agent ?? {})) {
|
||||
if (value.disable) continue
|
||||
if (value.disable) {
|
||||
delete result[key]
|
||||
continue
|
||||
}
|
||||
let item = result[key]
|
||||
if (!item)
|
||||
item = result[key] = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue