From c9773e55b234b7637ea97b671161cd856a1d3d69 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Tue, 7 Feb 2023 12:05:00 +0000 Subject: [PATCH] Search: Switch to list view when filtering by tags (#63004) Co-authored-by: Ashley Harrison --- public/app/features/search/page/components/ActionRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/search/page/components/ActionRow.tsx b/public/app/features/search/page/components/ActionRow.tsx index e1115360904..ced058db3fa 100644 --- a/public/app/features/search/page/components/ActionRow.tsx +++ b/public/app/features/search/page/components/ActionRow.tsx @@ -39,7 +39,7 @@ export function getValidQueryLayout(q: SearchState): SearchLayout { // Folders is not valid when a query exists if (layout === SearchLayout.Folders) { - if (q.query || q.sort || q.starred) { + if (q.query || q.sort || q.starred || q.tag.length > 0) { return SearchLayout.List; } }