mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:20:43 +00:00
fix(providers): guard optional provider index installs
This commit is contained in:
@@ -119,7 +119,10 @@ function resolveInstallInfoFromProviderIndex(
|
||||
provider: OpenClawProviderIndexProvider,
|
||||
): PluginPackageInstall | null {
|
||||
const install = provider.plugin.install;
|
||||
const npmSpec = install?.npmSpec?.trim();
|
||||
if (!install) {
|
||||
return null;
|
||||
}
|
||||
const npmSpec = install.npmSpec?.trim();
|
||||
if (!npmSpec) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user