PanelEditor: leave table view when changing the other display modes (#33826)
This commit is contained in:
1 parent
98f59cfcba
commit
1e6eb70af0
1 file changed
+3
@@ -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