Skip to content

Commit

Permalink
fixed the title issue (#166)
Browse files Browse the repository at this point in the history
* fixed the title issue

* updated the version
  • Loading branch information
adeelehsan authored Aug 9, 2024
1 parent eccadf9 commit 5c9803a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vectara-answer",
"version": "1.6.2",
"version": "1.6.9",
"private": true,
"dependencies": {
"@analytics/google-tag-manager": "^0.5.5",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/deserializeSearchResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const deserializeSearchResponse = (
},
source: document.document_metadata.source,
url: document.document_metadata.url,
title: document.document_metadata.title,
title: document.document_metadata.title || text.split(' ').slice(0, 10).join(' '),
metadata: document.document_metadata
} as DeserializedSearchResult);
});
Expand Down

0 comments on commit 5c9803a

Please sign in to comment.