From 3f86150506ed9e5c4802bc97a61e8eb57a55106e Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 13 Oct 2021 11:32:42 +0100 Subject: [PATCH] Fix: State timeline tooltip not showing (#40100) (#40374) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix: State timeline tooltip not showing * Check transformation instead of refId (cherry picked from commit 7422189a88caf28f3c29b3416cda689a656eb232) Co-authored-by: Zoltán Bedi --- .../app/plugins/panel/state-timeline/StateTimelinePanel.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/app/plugins/panel/state-timeline/StateTimelinePanel.tsx b/public/app/plugins/panel/state-timeline/StateTimelinePanel.tsx index cbc035e39d7..ba9cb48851a 100755 --- a/public/app/plugins/panel/state-timeline/StateTimelinePanel.tsx +++ b/public/app/plugins/panel/state-timeline/StateTimelinePanel.tsx @@ -49,7 +49,10 @@ export const StateTimelinePanel: React.FC = ({ * Render nothing in this case to prevent error. * See https://github.com/grafana/support-escalations/issues/932 */ - if (alignedData.fields.length - 1 !== data.length || !alignedData.fields[seriesIdx]) { + if ( + (!alignedData.meta?.transformations?.length && alignedData.fields.length - 1 !== data.length) || + !alignedData.fields[seriesIdx] + ) { return null; }