mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Search: fix front end query search condition (#55611)
* fix frontend query condition * refactor to `inludes`
This commit is contained in:
parent
c56b3f39cf
commit
e341aa4dab
@ -13,7 +13,7 @@ export function getGrafanaSearcher(): GrafanaSearcher {
|
||||
const useBluge = config.featureToggles.panelTitleSearch;
|
||||
searcher = useBluge ? new BlugeSearcher(sqlSearcher) : sqlSearcher;
|
||||
|
||||
if (useBluge && location.search.indexOf('do-frontend-query')) {
|
||||
if (useBluge && location.search.includes('do-frontend-query')) {
|
||||
searcher = new FrontendSearcher(searcher);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user