Fix: State timeline tooltip not showing (#40100) (#40374)

* Fix: State timeline tooltip not showing

* Check transformation instead of refId

(cherry picked from commit 7422189a88)

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-10-13 12:32:42 +02:00
committed by GitHub
co-authored by Zoltán Bedi
parent 92d768fe66
commit 3f86150506
@@ -49,7 +49,10 @@ export const StateTimelinePanel: React.FC<TimelinePanelProps> = ({
* 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;
}