From 98c540ce8a39f6be974fafecc09fd7e123306cca Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 23 Aug 2021 08:39:07 -0400 Subject: [PATCH] Annotation Panel: Fix annotation with end time not being centered (#38423) (#38438) * Annotation Panel: Fix annotation with end time not being centered * Update public/app/plugins/panel/annolist/AnnoListPanel.tsx Co-authored-by: Ryan McKinley Co-authored-by: Ryan McKinley (cherry picked from commit 1b3eecddcde4b92c4567aa37370e6463b84dba9b) Co-authored-by: Villena Guillaume --- public/app/plugins/panel/annolist/AnnoListPanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/panel/annolist/AnnoListPanel.tsx b/public/app/plugins/panel/annolist/AnnoListPanel.tsx index aec121dfcd5..cfc88503004 100644 --- a/public/app/plugins/panel/annolist/AnnoListPanel.tsx +++ b/public/app/plugins/panel/annolist/AnnoListPanel.tsx @@ -140,7 +140,7 @@ export class AnnoListPanel extends PureComponent { const params: any = { from: this._timeOffset(anno.time, options.navigateBefore, true), - to: this._timeOffset(anno.time, options.navigateAfter, false), + to: this._timeOffset(anno.timeEnd ?? anno.time, options.navigateAfter, false), }; if (options.navigateToPanel) {