mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
Fix default search engine in settings menu
This commit is contained in:
@@ -42,9 +42,9 @@ function SettingsMenu(props: any) {
|
|||||||
<Group>
|
<Group>
|
||||||
<SegmentedControl
|
<SegmentedControl
|
||||||
title="Search engine"
|
title="Search engine"
|
||||||
defaultValue={
|
value={
|
||||||
// Match config.settings.searchUrl with a key in the matches array
|
// Match config.settings.searchUrl with a key in the matches array
|
||||||
matches.find((match) => match.value === config.settings.searchUrl)?.value || 'Google'
|
matches.find((match) => match.value === config.settings.searchUrl)?.value ?? 'Google'
|
||||||
}
|
}
|
||||||
onChange={
|
onChange={
|
||||||
// Set config.settings.searchUrl to the value of the selected item
|
// Set config.settings.searchUrl to the value of the selected item
|
||||||
|
|||||||
Reference in New Issue
Block a user