Commit 83193aed by Emil Tullstedt Committed by GitHub

Search: Fix title search null pointer (#23705)

parent 8709c9a8
...@@ -247,7 +247,7 @@ func findDashboards(query *search.FindPersistedDashboardsQuery) ([]DashboardSear ...@@ -247,7 +247,7 @@ func findDashboards(query *search.FindPersistedDashboardsQuery) ([]DashboardSear
if len(query.Title) > 0 { if len(query.Title) > 0 {
sb.WithTitle(query.Title) sb.WithTitle(query.Title)
sb2filters = append(sb2filters, searchstore.TitleFilter{Title: query.Title}) sb2filters = append(sb2filters, searchstore.TitleFilter{Dialect: dialect, Title: query.Title})
} }
if len(query.Type) > 0 { if len(query.Type) > 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment