diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 1efff13f..920005e3 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -49,7 +49,7 @@ const ConversationBubble = forwardRef< feedback?: FEEDBACK; handleFeedback?: (feedback: FEEDBACK) => void; thought?: string; - sources?: { title: string; text: string; source: string }[]; + sources?: { title: string; text: string; link: string }[]; toolCalls?: ToolCallsType[]; retryBtn?: React.ReactElement; questionNumber?: number; @@ -233,7 +233,7 @@ const ConversationBubble = forwardRef< {DisableSourceFE || type === 'ERROR' || sources?.length === 0 || - sources?.some((source) => source.source === 'None') ? null : !sources && + sources?.some((source) => source.link === 'None') ? null : !sources && chunks !== '0' && selectedDocs ? (
- {source.source && source.source !== 'local' - ? source.source + {source.link && source.link !== 'local' + ? source.link : source.title}