mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PanelEdit: Update UI if panel plugin changes field config (#29898)
This commit is contained in:
@@ -127,12 +127,11 @@ export class PanelEditorUnconnected extends PureComponent<Props> {
|
||||
};
|
||||
|
||||
onFieldConfigChange = (config: FieldConfigSource) => {
|
||||
const { panel } = this.props;
|
||||
|
||||
panel.updateFieldConfig({
|
||||
// we do not need to trigger force update here as the function call below
|
||||
// fires PanelOptionsChangedEvent which we subscribe to above
|
||||
this.props.panel.updateFieldConfig({
|
||||
...config,
|
||||
});
|
||||
this.forceUpdate();
|
||||
};
|
||||
|
||||
onPanelOptionsChanged = (options: any) => {
|
||||
|
||||
Reference in New Issue
Block a user