Skip to content

Commit

Permalink
fix: search default with tavily (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
okisdev authored Apr 13, 2024
1 parent 5858eb5 commit f8e23c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/layout/search-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const SearchSelect = () => {
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuRadioGroup
value={currentSearchEngineSettings?.Tavily ? 'Tavily' : 'Google'}
value={currentSearchEngine === SearchEngine.Tavily ? SearchEngine.Tavily : undefined}
onValueChange={(value) => {
setCurrentSearchEngine(value === 'Tavily' ? SearchEngine.Tavily : SearchEngine.Google);
}}
Expand All @@ -64,7 +64,7 @@ export const SearchSelect = () => {
</>
)
)}
<DropdownMenuRadioItem key='tavily' value='Tavily' className='cursor-pointer'>
<DropdownMenuRadioItem key='tavily' value={SearchEngine.Tavily} className='cursor-pointer'>
<div className='flex cursor-pointer items-center space-x-2'>
<Image src={`/img/Tavily.png`} alt='Tavily' width={16} height={16} />
<p>Tavily</p>
Expand Down

0 comments on commit f8e23c5

Please sign in to comment.