mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'table-reducer' of https://github.com/ryantxu/grafana into ryantxu-table-reducer
This commit is contained in:
@@ -98,6 +98,11 @@ export class DashboardPanel extends PureComponent<Props, State> {
|
||||
}
|
||||
panel.changeType(pluginId, hook);
|
||||
}
|
||||
} else if (plugin.exports && plugin.exports.reactPanel) {
|
||||
const hook = plugin.exports.reactPanel.panelTypeChangedHook;
|
||||
if (hook) {
|
||||
panel.options = hook(panel.options || {}, null, null);
|
||||
}
|
||||
}
|
||||
|
||||
this.setState({ plugin, angularPanel: null });
|
||||
|
||||
Reference in New Issue
Block a user