Support custom search in quicklaunch web search
This commit is contained in:
1 parent
9b8e01971f
commit
1f5912c232
3 files changed
+10
-3
No files matched your search
+7
-1
@@ -197,7 +197,13 @@ function Home({ initialSettings }) {
|
||||
let searchProvider = null;
|
||||
const searchWidget = Object.values(widgets).find(w => w.type === "search");
|
||||
if (searchWidget) {
|
||||
searchProvider = searchProviders[searchWidget.options?.provider];
|
||||
if (searchWidget.options?.provider === 'custom') {
|
||||
searchProvider = {
|
||||
url: searchWidget.options.url
|
||||
}
|
||||
} else {
|
||||
searchProvider = searchProviders[searchWidget.options?.provider];
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in new issue
Block a user