Skip to content

Commit

Permalink
Fixed summary language issue (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeelehsan committed Apr 30, 2024
1 parent bdbe1b3 commit b06d102
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config/vectara-docs/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
corpus_id: 1
customer_id: 1366999410
customer_id: 246431873
app_title: "Vectara Docs Search"
search_title: "Vectara Docs Search"
search_description: "All of Vectara's Platform Documentation"
Expand Down
11 changes: 4 additions & 7 deletions src/views/search/controls/OptionsDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,12 @@ export const OptionsDrawer = ({ isOpen, onClose }: Props) => {
<VuiButtonPrimary
color="primary"
onClick={() => {
if (newLanguage !== language) {
onSearch({
language: newLanguage as SummaryLanguage,
});
}
setUxMode(newUxMode);
setFcsMode(newFcsMode)
if(fcsMode === "disable") {
onSearch({modifiedFcsMode: newFcsMode as FcsMode})
if (newLanguage !== language || newFcsMode !== fcsMode) {
onSearch({
language: newLanguage as SummaryLanguage, modifiedFcsMode: newFcsMode as FcsMode
});
}
onClose();
}}
Expand Down

0 comments on commit b06d102

Please sign in to comment.