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 it's not specified there either then set the value to false
if (searchProvider)
if (searchProvider) {
searchProvider.showSearchSuggestions = !!(
settings?.quicklaunch?.showSearchSuggestions ??
searchWidget?.options?.showSearchSuggestions ??
false
);
}
function openCurrentItem(newWindow) {
const result = results[currentItemIndex];