Logs: use refId

This commit is contained in:
L2D2Grafana
2026-01-07 07:43:02 -08:00
parent 86a12469a7
commit c234f41691
@@ -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