From c234f41691a34765ffe4eaf3a5d1ad0825525d0e Mon Sep 17 00:00:00 2001 From: L2D2Grafana Date: Wed, 10 Dec 2025 12:07:53 -0800 Subject: [PATCH] Logs: use refId --- .../explore/extensions/AddToDashboard/addToDashboard.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/app/features/explore/extensions/AddToDashboard/addToDashboard.ts b/public/app/features/explore/extensions/AddToDashboard/addToDashboard.ts index 16fdffa223a..ba4439bfa55 100644 --- a/public/app/features/explore/extensions/AddToDashboard/addToDashboard.ts +++ b/public/app/features/explore/extensions/AddToDashboard/addToDashboard.ts @@ -39,9 +39,7 @@ function getLogsTableTransformations( // Map constant field names to actual field names from the data frame // Find the first logs frame to get the actual field names - const logsFrame = options.queryResponse.logsFrames.find( - (frame) => frame.refId === options.panelState?.logs?.refId || !options.panelState?.logs?.refId - ); + const logsFrame = options.queryResponse.logsFrames.find((frame) => frame.refId === options.panelState?.logs?.refId); const parsedLogsFrame = logsFrame ? parseLogsFrame(logsFrame) : null; // Map displayedFields from constant names to actual field names