Skip to content

Commit

Permalink
[Search] Fix playground crash when adding connector
Browse files Browse the repository at this point in the history
  • Loading branch information
sphilipse committed Oct 30, 2024
1 parent fdd5e0b commit 326b6fb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export const SummarizationModel: React.FC<SummarizationModelProps> = ({

useEffect(() => {
usageTracker?.click(
`${AnalyticsEvents.modelSelected}_${selectedModel!.value || selectedModel!.connectorType}`
`${AnalyticsEvents.modelSelected}_${
selectedModel?.value || selectedModel?.connectorType || 'unknown'
}`
);
}, [usageTracker, selectedModel]);

Expand Down

0 comments on commit 326b6fb

Please sign in to comment.