From 0ba93afda972e0a2b49a4e3f463cf8ecc3d2d304 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 4 Apr 2026 03:02:59 +0900 Subject: [PATCH] fix(feishu): guard scoped setup config access --- extensions/feishu/src/setup-surface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/feishu/src/setup-surface.ts b/extensions/feishu/src/setup-surface.ts index ebe9e8422ed..e846cc5e165 100644 --- a/extensions/feishu/src/setup-surface.ts +++ b/extensions/feishu/src/setup-surface.ts @@ -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(