mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PanelEditor: leave table view when changing the other display modes (#33826)
This commit is contained in:
parent
98f59cfcba
commit
1e6eb70af0
@ -218,6 +218,9 @@ export class PanelEditorUnconnected extends PureComponent<Props> {
|
||||
|
||||
onDisplayModeChange = (mode?: DisplayMode) => {
|
||||
const { updatePanelEditorUIState } = this.props;
|
||||
if (this.props.tableViewEnabled) {
|
||||
this.props.toggleTableView();
|
||||
}
|
||||
updatePanelEditorUIState({
|
||||
mode: mode,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user