fix(feishu): guard scoped setup config access

This commit is contained in:
Vincent Koc 2026-04-04 03:02:59 +09:00
parent b7b53b29e8
commit 0ba93afda9
1 changed files with 1 additions and 1 deletions

View File

@ -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(