From ea7f6ea32f50bff7328edbe4ada58e47499c8a5e Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Tue, 18 Jun 2024 07:31:42 +0300 Subject: [PATCH] Explore: Avoid sending panelId header unless we are in a dashboard (#88255) --- packages/grafana-runtime/src/utils/DataSourceWithBackend.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts index 2c0f8acfc56..7172ae63740 100644 --- a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts +++ b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts @@ -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}`;