mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
fix(config): avoid unsafe web search dereference
This commit is contained in:
@@ -648,7 +648,7 @@ export function resolveConfiguredPluginAutoEnableCandidates(params: {
|
||||
const webSearchConfig = params.config.tools?.web?.search;
|
||||
const webSearchProvider =
|
||||
webSearchConfig?.enabled !== false && typeof webSearchConfig?.provider === "string"
|
||||
? params.config.tools.web.search.provider
|
||||
? webSearchConfig.provider
|
||||
: undefined;
|
||||
const webSearchPluginId = resolvePluginIdForConfiguredWebSearchProvider(
|
||||
webSearchProvider,
|
||||
|
||||
Reference in New Issue
Block a user