mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
PanelEditor: leave table view when changing the other display modes (#33826)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user