From 85dc4fc50516ee1cefb8b3b4890cb42f8e3f4a16 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 15 Sep 2022 15:35:09 +0200 Subject: [PATCH] Search: Fixes folder section not displaying dashboards (#55231) (#55240) --- public/app/features/search/page/components/SearchView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/search/page/components/SearchView.tsx b/public/app/features/search/page/components/SearchView.tsx index 61c65ef452c..455eb9aa167 100644 --- a/public/app/features/search/page/components/SearchView.tsx +++ b/public/app/features/search/page/components/SearchView.tsx @@ -134,8 +134,8 @@ export const SearchView = ({ }; const results = useAsync(() => { - // No need to query all dashboards if we are in folder view - if (layout === SearchLayout.Folders) { + // No need to query all dashboards if we are in search folder view + if (layout === SearchLayout.Folders && !folderDTO) { return Promise.resolve(); }