Commit a5c8bbfe by Torkel Ödegaard

Fixed query param in dashboard search for grafana datasource

parent 584f40d0
...@@ -63,7 +63,7 @@ function (angular, _, kbn) { ...@@ -63,7 +63,7 @@ function (angular, _, kbn) {
}; };
GrafanaDatasource.prototype.searchDashboards = function(query) { GrafanaDatasource.prototype.searchDashboards = function(query) {
return backendSrv.get('/api/search/', { params: { q: query } }) return backendSrv.get('/api/search/', { q: query } )
.then(function(data) { .then(function(data) {
var hits = { dashboards: [], tags: [] }; var hits = { dashboards: [], tags: [] };
hits.dashboards = _.map(data, function(item) { hits.dashboards = _.map(data, function(item) {
......
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