mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Re-render panel's tabs on variables change (#49893)
This commit is contained in:
@@ -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)!;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user