Alerting: Re-render panel's tabs on variables change (#49893)

This commit is contained in:
Konrad Lalik
2022-06-01 13:03:33 +02:00
committed by GitHub
parent 39096208ed
commit 63303eb4ba
3 changed files with 45 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ export const PanelEditorTabs: FC<PanelEditorTabsProps> = React.memo(({ panel, da
eventSubs.add(panel.events.subscribe(PanelQueriesChangedEvent, forceUpdate));
eventSubs.add(panel.events.subscribe(PanelTransformationsChangedEvent, forceUpdate));
return () => eventSubs.unsubscribe();
}, [panel, forceUpdate]);
}, [panel, dashboard, forceUpdate]);
const activeTab = tabs.find((item) => item.active)!;