mirror of https://github.com/openclaw/openclaw.git
fix(feishu): guard scoped setup config access
This commit is contained in:
parent
b7b53b29e8
commit
0ba93afda9
|
|
@ -41,7 +41,7 @@ function getScopedFeishuConfig(
|
|||
if (accountId === DEFAULT_ACCOUNT_ID) {
|
||||
return feishuCfg ?? {};
|
||||
}
|
||||
return (feishuCfg.accounts?.[accountId] as FeishuAccountConfig | undefined) ?? {};
|
||||
return (feishuCfg?.accounts?.[accountId] as FeishuAccountConfig | undefined) ?? {};
|
||||
}
|
||||
|
||||
function patchFeishuConfig(
|
||||
|
|
|
|||
Loading…
Reference in New Issue