Skip to content

Commit

Permalink
Don't expand drawermenu if querypanel is disabled. Closes #1389
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnafu committed Jan 25, 2017
1 parent 2dc1b4f commit e89059f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/client/plugins/DrawerMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const {partialRight} = require('lodash');
const Menu = connect((state) => ({
show: state.controls.drawer && state.controls.drawer.enabled,
activeKey: state.controls.drawer && state.controls.drawer.menu,
dynamicWidth: state.controls.drawer && state.controls.drawer.width || undefined
dynamicWidth: state.controls.queryPanel && state.controls.queryPanel.enabled && state.controls.drawer && state.controls.drawer.width || undefined
}), {
onToggle: toggleControl.bind(null, 'drawer', null),
onChoose: partialRight(setControlProperty.bind(null, 'drawer', 'menu'), true),
Expand Down

0 comments on commit e89059f

Please sign in to comment.