From 8ffd58a855508192ba85e182ee2d1f70555e2444 Mon Sep 17 00:00:00 2001 From: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com> Date: Mon, 17 Apr 2023 17:20:05 +0200 Subject: [PATCH] AnnotationList: Fix panel not updating when variable is changed (#65899) Squashed commit of the following: commit 421bd0bb7e6220f1c0a65b60696e258003ebf91d Author: Joao Silva Date: Tue Apr 4 10:48:04 2023 +0100 user essentials mob! :trident: lastFile:public/app/plugins/panel/annolist/AnnoListPanel.tsx commit 862846a39d774ba78861d567b6fd42fe7e4793ad Author: joshhunt Date: Tue Apr 4 10:35:35 2023 +0100 user essentials mob! :trident: commit 4ddc7febbb790ba4ff65e2739246c951a4ddbe34 Author: Tobias Skarhed Date: Tue Apr 4 11:20:08 2023 +0200 mob next [ci-skip] [ci skip] [skip ci] lastFile:public/app/plugins/panel/annolist/AnnoListPanel.tsx Co-authored-by: joshhunt Co-authored-by: Tobias Skarhed --- public/app/plugins/panel/annolist/AnnoListPanel.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/plugins/panel/annolist/AnnoListPanel.tsx b/public/app/plugins/panel/annolist/AnnoListPanel.tsx index 66b6543a9d9..1574e3bfe37 100644 --- a/public/app/plugins/panel/annolist/AnnoListPanel.tsx +++ b/public/app/plugins/panel/annolist/AnnoListPanel.tsx @@ -74,6 +74,7 @@ export class AnnoListPanel extends PureComponent { options !== prevProps.options || this.state.queryTags !== prevState.queryTags || this.state.queryUser !== prevState.queryUser || + prevProps.renderCounter !== this.props.renderCounter || (options.onlyInTimeRange && timeRange !== prevProps.timeRange); if (needsQuery) {