Skip to content

Commit e1bc754

Browse files
alenkaczclaude
andcommitted
fix: add optional chaining on providerConfig.value
Addresses review comment — use ?. for type safety. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 638c205 commit e1bc754

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/pages/agents/details/ai-agent-configuration-tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ export const AIAgentConfigurationTab = () => {
12611261
if (formTypeId === 'bedrock' && providersData?.llmProviders) {
12621262
const fullProvider = providersData.llmProviders.find((p) => p.name === value);
12631263
if (fullProvider?.providerConfig?.case === 'bedrockConfig') {
1264-
baseUrl = fullProvider.providerConfig.value.region || '';
1264+
baseUrl = fullProvider.providerConfig.value?.region || '';
12651265
}
12661266
}
12671267

0 commit comments

Comments
 (0)