Skip to content

Commit 5ec1a91

Browse files
authored
Merge pull request #294 from sunnymodi21/chore/show-title-source
Show title of source documents
2 parents 9a9ba71 + 94a4fd6 commit 5ec1a91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/bubbles/BotBubble.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export const BotBubble = (props: Props) => {
529529
const URL = isValidURL(src.metadata.source);
530530
return (
531531
<SourceBubble
532-
pageContent={URL ? URL.pathname : src.pageContent}
532+
pageContent={src.metadata.title ? src.metadata.title : URL ? URL.pathname : src.pageContent}
533533
metadata={src.metadata}
534534
onSourceClick={() => {
535535
if (URL) {

0 commit comments

Comments
 (0)