From 1b3eecddcde4b92c4567aa37370e6463b84dba9b Mon Sep 17 00:00:00 2001 From: Villena Guillaume Date: Mon, 23 Aug 2021 13:03:27 +0200 Subject: [PATCH] Annotation Panel: Fix annotation with end time not being centered (#38423) * 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 --- 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) {