Search: Fixes folder section not displaying dashboards (#55231) (#55240)

This commit is contained in:
Grot (@grafanabot)
2022-09-15 14:35:09 +01:00
committed by GitHub
parent 1c9091f85d
commit 85dc4fc505
@@ -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();
}