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

This commit is contained in:
Joao Silva 2022-09-15 14:00:05 +01:00 committed by GitHub
parent 1d298b3e53
commit 13014dc0df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,8 +164,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();
}