mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed a small bug when toggling items in toolbar
This commit is contained in:
parent
9b8a5333cb
commit
67e8958aec
@ -52,7 +52,7 @@ export class EditorTabBody extends PureComponent<Props, State> {
|
||||
onToggleToolBarView = (item: EditorToolbarView) => {
|
||||
this.setState({
|
||||
openView: item,
|
||||
isOpen: !this.state.isOpen,
|
||||
isOpen: this.state.openView !== item ? true : !this.state.isOpen,
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user