Search: Avoid requesting all dashboards when in Folder View (#55188)

This commit is contained in:
Joao Silva
2022-09-14 15:56:56 -07:00
committed by GitHub
parent 4d28c496b6
commit 41a300a4f4
@@ -134,6 +134,11 @@ export const SearchView = ({
};
const results = useAsync(() => {
// No need to query all dashboards if we are in folder view
if (layout === SearchLayout.Folders) {
return Promise.resolve();
}
const trackingInfo = {
layout: query.layout,
starred: query.starred,