Library panels: Fix search query (#103812)
This commit is contained in:
@@ -8,6 +8,7 @@ import { config } from 'app/core/config';
|
||||
import { t, Trans } from 'app/core/internationalization';
|
||||
import { getBackendSrv } from 'app/core/services/backend_srv';
|
||||
import { getGrafanaSearcher } from 'app/features/search/service/searcher';
|
||||
import { DashboardSearchItemType } from 'app/features/search/types';
|
||||
import { FolderInfo, PermissionLevelString } from 'app/types';
|
||||
|
||||
export interface FolderFilterProps {
|
||||
@@ -86,7 +87,7 @@ async function getFoldersAsOptions(
|
||||
// Use existing backend service search
|
||||
const params = {
|
||||
query: searchString,
|
||||
type: 'folder',
|
||||
type: DashboardSearchItemType.DashFolder,
|
||||
permission: PermissionLevelString.View,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user