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 <ryantxu@gmail.com>

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Villena Guillaume 2021-08-23 13:03:27 +02:00 committed by GitHub
parent 64cb000d37
commit 1b3eecddcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ export class AnnoListPanel extends PureComponent<Props, State> {
const params: any = { const params: any = {
from: this._timeOffset(anno.time, options.navigateBefore, true), 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) { if (options.navigateToPanel) {