Update quicklaunch.jsx

This commit is contained in:
shamoon 2024-05-31 21:04:43 -07:00
parent 2df798834b
commit fb08a73a10

View File

@ -42,14 +42,13 @@ export default function QuickLaunch({ servicesAndBookmarks, searchString, setSea
} }
} }
// If there is no search provider in quick launch settings try to get the value from search widget, if (searchProvider) {
// if it's not specified there either then set the value to false
if (searchProvider)
searchProvider.showSearchSuggestions = !!( searchProvider.showSearchSuggestions = !!(
settings?.quicklaunch?.showSearchSuggestions ?? settings?.quicklaunch?.showSearchSuggestions ??
searchWidget?.options?.showSearchSuggestions ?? searchWidget?.options?.showSearchSuggestions ??
false false
); );
}
function openCurrentItem(newWindow) { function openCurrentItem(newWindow) {
const result = results[currentItemIndex]; const result = results[currentItemIndex];