[Maps] Should be able to open layer settings from add layer wizard

This commit is contained in:
Thomas Neirynck 2020-01-24 10:59:08 -05:00 committed by GitHub
parent 5c19f9db4e
commit 837c9092e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@ import { connect } from 'react-redux';
import { LayerControl } from './view';
import { FLYOUT_STATE } from '../../../reducers/ui';
import { updateFlyout, setIsLayerTOCOpen } from '../../../actions/ui_actions';
import { setSelectedLayer } from '../../../actions/map_actions';
import {
getIsReadOnly,
getIsLayerTOCOpen,
@ -26,7 +27,8 @@ function mapStateToProps(state = {}) {
function mapDispatchToProps(dispatch) {
return {
showAddLayerWizard: () => {
showAddLayerWizard: async () => {
await dispatch(setSelectedLayer(null));
dispatch(updateFlyout(FLYOUT_STATE.ADD_LAYER_WIZARD));
},
closeLayerTOC: () => {