Search: Switch to list view when filtering by tags (#63004)

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
pull/63028/head
Josh Hunt 2 years ago committed by GitHub
parent 955e49cfba
commit c9773e55b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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;
}
}

Loading…
Cancel
Save