From 88e8d97ad3cc747c5d17b827fe42f06fdb00a553 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 7 Feb 2023 12:12:56 +0000 Subject: [PATCH] [v9.4.x] Search: Switch to list view when filtering by tags (#63017) Search: Switch to list view when filtering by tags (#63004) Co-authored-by: Ashley Harrison (cherry picked from commit c9773e55b234b7637ea97b671161cd856a1d3d69) Co-authored-by: Josh Hunt --- 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; } }