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

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
Josh Hunt 2023-02-07 12:05:00 +00:00 committed by GitHub
parent 955e49cfba
commit c9773e55b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}