Skip to content

Commit

Permalink
Fix #3930 short height of query panel filter when opened in dashboard (
Browse files Browse the repository at this point in the history
kasongoyo authored and MV88 committed Aug 29, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 66e3435 commit 65e7e63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/client/plugins/QueryPanel.jsx
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ const {toggleControl} = require('../actions/controls');

const {groupsSelector, selectedLayerLoadingErrorSelector} = require('../selectors/layers');
const {mapSelector} = require('../selectors/map');
const {isDashboardAvailable} = require('../selectors/dashboard');
const {
crossLayerFilterSelector,
availableCrossLayerFilterLayersSelector,
@@ -179,16 +180,17 @@ const tocSelector = createSelector(
(state) => state.layers && state.layers.settings || {expanded: false, options: {opacity: 1}},
(state) => state.controls && state.controls.queryPanel && state.controls.queryPanel.enabled || false,
state => mapLayoutValuesSelector(state, {height: true}),
isDashboardAvailable,
appliedFilterSelector,
storedFilterSelector,
(state) => state && state.query && state.query.isLayerFilter,
selectedLayerLoadingErrorSelector
], (enabled, groups, settings, querypanelEnabled, layout, appliedFilter, storedFilter, advancedToolbar, loadingError) => ({
], (enabled, groups, settings, querypanelEnabled, layoutHeight, dashboardAvailable, appliedFilter, storedFilter, advancedToolbar, loadingError) => ({
enabled,
groups,
settings,
querypanelEnabled,
layout,
layout: !dashboardAvailable ? layoutHeight : {},
appliedFilter,
storedFilter,
advancedToolbar,

0 comments on commit 65e7e63

Please sign in to comment.