Explore: Avoid sending panelId header unless we are in a dashboard (#88255)

pull/89325/head
Ryan McKinley 1 year ago committed by GitHub
parent 5f83fdef2c
commit ea7f6ea32f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/grafana-runtime/src/utils/DataSourceWithBackend.ts

@ -231,9 +231,9 @@ class DataSourceWithBackend<
if (request.dashboardUID) { if (request.dashboardUID) {
headers[PluginRequestHeaders.DashboardUID] = request.dashboardUID; headers[PluginRequestHeaders.DashboardUID] = request.dashboardUID;
} if (request.panelId) {
if (request.panelId) { headers[PluginRequestHeaders.PanelID] = `${request.panelId}`;
headers[PluginRequestHeaders.PanelID] = `${request.panelId}`; }
} }
if (request.panelPluginId) { if (request.panelPluginId) {
headers[PluginRequestHeaders.PanelPluginId] = `${request.panelPluginId}`; headers[PluginRequestHeaders.PanelPluginId] = `${request.panelPluginId}`;

Loading…
Cancel
Save