Skip to content

Commit 157e1af

Browse files
Fix geosolutions-it#11794 map toolbar issue when opening attribute table and catalog (geosolutions-it#12076)
1 parent b73617b commit 157e1af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/client/plugins/Toolbar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import React from 'react';
1111
import PropTypes from 'prop-types';
1212
import { connect } from 'react-redux';
1313
import { isFeatureGridOpen } from '../selectors/featuregrid';
14-
import { mapLayoutValuesSelector } from '../selectors/maplayout';
14+
import { boundingMapRectLayoutValuesSelector } from '../selectors/maplayout';
1515
import { createSelector } from 'reselect';
1616
import ToolsContainer from './containers/ToolsContainer';
1717

@@ -122,7 +122,7 @@ const toolbarSelector = stateSelector => createSelector([
122122
state => state.controls && state.controls[stateSelector] && state.controls[stateSelector].active,
123123
state => state.controls && state.controls[stateSelector] && state.controls[stateSelector].expanded,
124124
isFeatureGridOpen,
125-
state => mapLayoutValuesSelector(state, {right: true, bottom: true})
125+
state => boundingMapRectLayoutValuesSelector(state, { right: true })
126126
], (active, allVisible, featuregridOpen, style) => ({
127127
active,
128128
allVisible,

0 commit comments

Comments
 (0)