Merge branch 'table-reducer' of https://github.com/ryantxu/grafana into ryantxu-table-reducer

This commit is contained in:
Torkel Ödegaard
2019-03-22 13:36:49 +01:00
13 changed files with 720 additions and 37 deletions

View File

@@ -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 });