mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Search: Switch to list view when filtering by tags (#63004)
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
parent
955e49cfba
commit
c9773e55b2
@ -39,7 +39,7 @@ export function getValidQueryLayout(q: SearchState): SearchLayout {
|
|||||||
|
|
||||||
// Folders is not valid when a query exists
|
// Folders is not valid when a query exists
|
||||||
if (layout === SearchLayout.Folders) {
|
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;
|
return SearchLayout.List;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user