Library panels: Fix search query (#103812)

This commit is contained in:
Stephanie Hingtgen
2025-04-10 18:52:16 +01:00
committed by GitHub
parent f8fc3d2db2
commit 45a55234e1
@@ -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,
};