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

This commit is contained in:
Ryan McKinley 2024-06-18 07:31:42 +03:00 committed by GitHub
parent 5f83fdef2c
commit ea7f6ea32f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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