mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 18:10:21 +00:00
fix: harden plugin auto-enable empty config handling
This commit is contained in:
@@ -306,9 +306,9 @@ describe("resolvePluginWebSearchProviders", () => {
|
||||
applyPluginAutoEnableSpy = vi
|
||||
.spyOn(pluginAutoEnableModule, "applyPluginAutoEnable")
|
||||
.mockImplementation(
|
||||
(params: { config: unknown }) =>
|
||||
(params) =>
|
||||
({
|
||||
config: params.config,
|
||||
config: params.config ?? {},
|
||||
changes: [],
|
||||
autoEnabledReasons: {},
|
||||
}) as ReturnType<PluginAutoEnableModule["applyPluginAutoEnable"]>,
|
||||
|
||||
Reference in New Issue
Block a user