From e89059febad22a2484bad2e845b3efe9cf38e451 Mon Sep 17 00:00:00 2001 From: Lorenzo Pini Date: Wed, 25 Jan 2017 12:38:48 +0100 Subject: [PATCH] Don't expand drawermenu if querypanel is disabled. Closes #1389 --- web/client/plugins/DrawerMenu.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/plugins/DrawerMenu.jsx b/web/client/plugins/DrawerMenu.jsx index 670646e71e..555d9f3273 100644 --- a/web/client/plugins/DrawerMenu.jsx +++ b/web/client/plugins/DrawerMenu.jsx @@ -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),