fix(xai): satisfy spread fallback lint (#75914)

This commit is contained in:
Peter Steinberger
2026-05-02 03:54:18 +01:00
committed by GitHub
parent 8c4c12a6dd
commit a09b1361a7

View File

@@ -53,10 +53,10 @@ export function resolveEffectiveXSearchConfig(config?: OpenClawConfig): JsonReco
const legacy = resolveLegacyXSearchConfig(config);
const pluginOwned = resolvePluginXSearchConfig(config);
const merged = {
...(legacyGrokBaseUrl ?? {}),
...(pluginWebSearchBaseUrl ?? {}),
...(legacy ?? {}),
...(pluginOwned ?? {}),
...legacyGrokBaseUrl,
...pluginWebSearchBaseUrl,
...legacy,
...pluginOwned,
};
if (Object.keys(merged).length === 0) {
return undefined;